svn: /php/php-src/ branches/PHP_5_3/ext/standard/tests/network/gethostbynamel_error.phpt trunk/ext/standard/tests/network/gethostbynamel_error.phpt

From: Date: Sun, 15 May 2011 01:52:07 +0000
Subject: svn: /php/php-src/ branches/PHP_5_3/ext/standard/tests/network/gethostbynamel_error.phpt trunk/ext/standard/tests/network/gethostbynamel_error.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-64927@lists.php.net to get a copy of this message
rasmus Sun, 15 May 2011 01:52:07 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=311037 Log: 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. Changed paths: U php/php-src/branches/PHP_5_3/ext/standard/tests/network/gethostbynamel_error.phpt U php/php-src/trunk/ext/standard/tests/network/gethostbynamel_error.phpt Modified: php/php-src/branches/PHP_5_3/ext/standard/tests/network/gethostbynamel_error.phpt =================================================================== --- php/php-src/branches/PHP_5_3/ext/standard/tests/network/gethostbynamel_error.phpt 2011-05-15 01:00:05 UTC (rev 311036) +++ php/php-src/branches/PHP_5_3/ext/standard/tests/network/gethostbynamel_error.phpt 2011-05-15 01:52:07 UTC (rev 311037) @@ -20,10 +20,6 @@ $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 @@ Warning: gethostbynamel() expects exactly 1 parameter, 2 given in %s on line %d NULL --- Testing gethostbynamel() with an unknown host -- -bool(false) Done Modified: php/php-src/trunk/ext/standard/tests/network/gethostbynamel_error.phpt =================================================================== --- php/php-src/trunk/ext/standard/tests/network/gethostbynamel_error.phpt 2011-05-15 01:00:05 UTC (rev 311036) +++ php/php-src/trunk/ext/standard/tests/network/gethostbynamel_error.phpt 2011-05-15 01:52:07 UTC (rev 311037) @@ -20,10 +20,6 @@ $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 @@ Warning: gethostbynamel() expects exactly 1 parameter, 2 given in %s on line %d NULL --- Testing gethostbynamel() with an unknown host -- -bool(false) Done

« previous php.cvs (#64927) next »