From: rgil at liquidnet dot com Operating system: CentOS 5U2 PHP version: 5.2.6 PHP Bug Type: Network related Bug description: gethostbyaddr does not return all hostnames
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 bug report at http://bugs.php.net/?id=45764&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=45764&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=45764&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=45764&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=45764&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=45764&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=45764&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=45764&r=needscript Try newer version: http://bugs.php.net/fix.php?id=45764&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=45764&r=support Expected behavior: http://bugs.php.net/fix.php?id=45764&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=45764&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=45764&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=45764&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=45764&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=45764&r=dst IIS Stability: http://bugs.php.net/fix.php?id=45764&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=45764&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=45764&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=45764&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=45764&r=mysqlcfg