#45764 [Opn]: gethostbyaddr does not return all hostnames

[email protected]
Newsgroups php.bugs
Message-ID <[email protected]>
 ID:               45764
 Updated by:       [email protected]
 Reported By:      rgil at liquidnet dot com
 Status:           Open
-Bug Type:         Network related
+Bug Type:         Feature/Change Request
 Operating System: CentOS 5U2
 PHP Version:      5.2.6
 New Comment:

Yes, it's supposed to only return one.


Previous Comments:
------------------------------------------------------------------------

[2008-08-08 14:00:48] rgil at liquidnet dot com

Description:
------------
gethostbyaddr does not return an array of hosts. Since 'host' on a
linux/unix based system will return all of them for a specific IP, I
think this should too. If it was intended to be this way, then this
should be a feature request. If this function was intended to mimic the
gnu host command, then this should be classified as a bug.

Reproduce code:
---------------
Only returns one entry. All versions.

Expected result:
----------------
Should return all host names associated with ip as gnu host does. Or an
added feature to return all hosts as an array.

Actual result:
--------------
Single host returned.


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=45764&edit=1
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.