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

From: Date: Mon, 04 May 2009 15:26:40 +0000
Subject: #45764 [Opn->Bgs]: gethostbyaddr does not return all hostnames
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-136750@lists.php.net to get a copy of this message
ID: 45764 Updated by: pajoye@php.net Reported By: rgil at liquidnet dot com -Status: Open +Status: Bogus Bug Type: Feature/Change Request Operating System: CentOS 5U2 PHP Version: 5.2.6 New Comment: See previous comment. Previous Comments: ------------------------------------------------------------------------ [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

« previous php.bugs (#136750) next »