mirror of
https://github.com/php/web-php.git
synced 2026-04-27 17:03:25 +02:00
Supress resolution warnings
This commit is contained in:
+1
-1
@@ -24,7 +24,7 @@ if (!isset($csel)) {
|
||||
$hostname=getenv("REMOTE_HOST");
|
||||
$ipaddr=getenv("REMOTE_ADDR");
|
||||
if ((!$hostname)||($hostname==$ipaddr)) {
|
||||
$hostname=gethostbyaddr($ipaddr);
|
||||
$hostname=@gethostbyaddr($ipaddr);
|
||||
echo "<!-- no_remote_host\nipaddr=$ipaddr\nhostname=$hostname -->\n";
|
||||
if ($hostname==$ipaddr) { $hostname=""; }
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user