From: shefik at allknightaccess dot com Operating system: Linux PHP version: 5.2.6 PHP Bug Type: Feature/Change Request Bug description: Timeout need for gethostbyname()
Description: ------------ When using the function gethostbyname(), a script can hang indefinitely if the host being queried is down or currently having name server failures. Therefore, a timeout is needed for this function, so the script can continue executing, instead of being stuck at trying to reach an inaccessible host. I know the docs at http://us3.php.net/manual/en/function.gethostbyname.php state "Returns the IP address or a string containing the unmodified hostname on failure." but the the hostname is having dns/nameserver failures at the time of query, then the hostname does not get returned on failure. the script will hang at this function. I am using PHP 5.2.6. How come bug #12802 is still open and not getting addressed? This bug was originally submitted Aug 16, 2001. It is now Aug 29, 2008. 7 years later and still the same bug!!! Why is this bug being ignored for so long? -- Edit bug report at http://bugs.php.net/?id=45952&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=45952&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=45952&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=45952&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=45952&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=45952&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=45952&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=45952&r=needscript Try newer version: http://bugs.php.net/fix.php?id=45952&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=45952&r=support Expected behavior: http://bugs.php.net/fix.php?id=45952&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=45952&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=45952&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=45952&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=45952&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=45952&r=dst IIS Stability: http://bugs.php.net/fix.php?id=45952&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=45952&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=45952&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=45952&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=45952&r=mysqlcfg
