From: Rasmus Lerdorf Date: Sun, 15 May 2011 01:52:07 +0000 (+0000) Subject: We can't really predict what will happen on an unknown host lookup X-Git-Tag: php-5.5.0alpha1~2099 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a8df376b918d4520f1d4ee51c6c6d659c492e0c6;p=php We can't really predict what will happen on an unknown host lookup since bogus ISPs like Comcast and many others try to "help" by resolving everything to their own search page. --- diff --git a/ext/standard/tests/network/gethostbynamel_error.phpt b/ext/standard/tests/network/gethostbynamel_error.phpt index 4a13bf021f..ab2abb7b76 100644 --- a/ext/standard/tests/network/gethostbynamel_error.phpt +++ b/ext/standard/tests/network/gethostbynamel_error.phpt @@ -20,10 +20,6 @@ $hostname = 'string_val'; $extra_arg = 10; var_dump( gethostbynamel($hostname, $extra_arg) ); -echo "\n-- Testing gethostbynamel() with an unknown host --\n"; -$hostname = 'unknownhost_zzz_xxx_yyy.'; -var_dump( gethostbynamel($hostname) ); - echo "Done"; ?> --EXPECTF-- @@ -39,6 +35,4 @@ NULL Warning: gethostbynamel() expects exactly 1 parameter, 2 given in %s on line %d NULL --- Testing gethostbynamel() with an unknown host -- -bool(false) Done