From: Operating system: CentOS PHP version: 5.2.13 Package: Performance problem Bug Type: Feature/Change Request Bug description:gethostbyaddr time limit
Description: ------------ When using gethostbyaddr with an IP it will return a host name just what we want. However, if there is no host name to return it stalls and takes 20-30 seconds PER IP lookup. If it CAN return a host name it does so in <1 second. Example - I can loop through 5 IPs that resolve to hostnames in .7 seconds. This includes database calls, and updates. Example 2 - I can loop through 5 IPs that DO NOT resolve to hostnames in 3 minutes!!! This needs to be fixed, or a second parameter option for max look-up time per-ip. gethostbyaddr(IP,Max_Execution_Time) as example. -- Edit bug report at http://bugs.php.net/bug.php?id=51306&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=51306&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=51306&r=trysnapshot53 Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=51306&r=trysnapshot60 Fixed in SVN: http://bugs.php.net/fix.php?id=51306&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=51306&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=51306&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=51306&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=51306&r=needscript Try newer version: http://bugs.php.net/fix.php?id=51306&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=51306&r=support Expected behavior: http://bugs.php.net/fix.php?id=51306&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=51306&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=51306&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=51306&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=51306&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=51306&r=dst IIS Stability: http://bugs.php.net/fix.php?id=51306&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=51306&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=51306&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=51306&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=51306&r=mysqlcfg