From 24be7e2106bc520b2eadf8272b9d73df6ba72866 Mon Sep 17 00:00:00 2001 From: Rasmus Lerdorf Date: Sun, 15 May 2011 01:52:07 +0000 Subject: [PATCH] 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. --- ext/standard/tests/network/gethostbynamel_error.phpt | 6 ------ 1 file changed, 6 deletions(-) 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 -- 2.40.0