]> granicus.if.org Git - php/commitdiff
We can't really predict what will happen on an unknown host lookup
authorRasmus Lerdorf <rasmus@php.net>
Sun, 15 May 2011 01:52:07 +0000 (01:52 +0000)
committerRasmus Lerdorf <rasmus@php.net>
Sun, 15 May 2011 01:52:07 +0000 (01:52 +0000)
since bogus ISPs like Comcast and many others try to "help" by resolving
everything to their own search page.

ext/standard/tests/network/gethostbynamel_error.phpt

index 4a13bf021f3339e81a537f96840735145a8613d0..ab2abb7b769f063b094e8fffd7262f9be2faca01 100644 (file)
@@ -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