Edit report at http://bugs.php.net/bug.php?id=45952&edit=1
ID: 45952 Updated by: [email protected] Reported by: shefik at allknightaccess dot com Summary: Timeout need for gethostbyname() -Status: Open +Status: Duplicate Type: Feature/Change Request Package: Feature/Change Request Operating System: Linux PHP Version: 5.2.6 New Comment: Dupe of the aforementioned bug #12802. Previous Comments: ------------------------------------------------------------------------ [2010-03-04 16:35:35] tyra3l at gmail dot com bump ------------------------------------------------------------------------ [2008-08-29 18:07:18] shefik at allknightaccess dot com 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 this bug report at http://bugs.php.net/bug.php?id=45952&edit=1
