From:             arnaud dot lb at gmail dot com
Operating system: Linux
PHP version:      5.2.6
PHP Bug Type:     Network related
Bug description:  gethostbynamel test should use canonical names

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 bug report at http://bugs.php.net/?id=45493&edit=1
-- 
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=45493&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): 
http://bugs.php.net/fix.php?id=45493&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=45493&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=45493&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=45493&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=45493&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=45493&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=45493&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=45493&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=45493&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=45493&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=45493&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=45493&r=globals
PHP 4 support discontinued:   http://bugs.php.net/fix.php?id=45493&r=php4
Daylight Savings:             http://bugs.php.net/fix.php?id=45493&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=45493&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=45493&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=45493&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=45493&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=45493&r=mysqlcfg

Reply via email to