1
0
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:
Zeev Suraski
1998-10-05 03:15:48 +00:00
parent 4faae6f7ef
commit 1cb9ee3b76
+1 -1
View File
@@ -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 {