#45764 [Bgs]: gethostbyaddr does not return all hostnames
ID: 45764
User updated by: rgil at liquidnet dot com
Reported By: rgil at liquidnet dot com
Status: Bogus
Bug Type: Feature/Change Request
Operating System: CentOS 5U2
PHP Version: 5.2.6
New Comment:
Can you please update this to a feature request? Status should not be
bogus.
Previous Comments:
------------------------------------------------------------------------
[2009-05-04 15:26:40] pajoye@php.net
See previous comment.
------------------------------------------------------------------------
[2008-08-08 18:13:15] jani@php.net
Yes, it's supposed to only return one.
------------------------------------------------------------------------
[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
Thread (4 messages)