#45493 [Opn->Csd]: gethostbynamel test should use canonical names
ID: 45493
Updated by: lbarnaud@php.net
Reported By: arnaud dot lb at gmail dot com
-Status: Open
+Status: Closed
Bug Type: Network related
Operating System: Linux
PHP Version: 5.2.6
New Comment:
This bug has been fixed in CVS.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2008-07-12 14:45:34] arnaud dot lb at gmail dot com
Description:
------------
gethostbynamel test
ext/standard/tests/network/gethostbynamel_error.phpt should use
canonical name for the "Testing gethostbynamel() with an unknown
host" test:
var_dump(gethostbynamel("unknownhost_zzz_xxx_yyy"));
unknownhost_zzz_xxx_yyy may be expanded to
unknownhost_zzz_xxx_yyy._your_local_domain_ and resolv correctly, in
which case the test fails, even if it is actually not a bug.
The test may use a canonical name (a dot at the end for the name),
so that it will not be expanded, and never resolv:
var_dump(gethostbynamel("unknownhost_zzz_xxx_yyy."));
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=45493&edit=1
Thread (2 messages)