|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #45493 gethostbynamel test should use canonical names
Submitted: 2008-07-12 14:45 UTC Modified: 2008-07-23 08:31 UTC
From: arnaud dot lb at gmail dot com Assigned:
Status: Closed Package: Network related
PHP Version: 5.2.6 OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
45 + 45 = ?
Subscribe to this entry?

 [2008-07-12 14:45 UTC] arnaud dot lb at gmail dot com
gethostbynamel test 
ext/standard/tests/network/gethostbynamel_error.phpt should use 
canonical name for the "Testing gethostbynamel() with an unknown 
host" test:


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:



Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2008-07-23 08:31 UTC]
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
Thank you for the report, and for helping us make PHP better.

PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Sun May 22 14:05:46 2022 UTC