#50807 [NEW]: getaddrinfo sporadically fails

From: Date: Wed, 20 Jan 2010 18:20:52 +0000
Subject: #50807 [NEW]: getaddrinfo sporadically fails
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-146823@lists.php.net to get a copy of this message
From: skasun at tucson dot com Operating system: OS X Leopard Server PHP version: 5.3.1 PHP Bug Type: Network related Bug description: getaddrinfo sporadically fails Description: ------------ We keep sporadically getting this error: Warning: file_get_contents() [function.file-get-contents]: php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution in [path to script] on line XX It has nothing to do with DNS on the machine. I can have dns_get_record return a valid response on the exact same page as that error. It's also not consistent. getaddrinfo works 90% of the time, but randomly, without any changes to the machine or the scripts, it will give the above error. Reproduce code: --------------- $page=file_get_contents("http://google.com"); Expected result: ---------------- The contents of google.com gets put into $page Actual result: -------------- 90% of the time, we get the expected result.. but then it will start failing and it may take several page reloads for it to start magically working again. Warning: file_get_contents() [function.file-get-contents]: php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution in [path to script] on line XX -- Edit bug report at http://bugs.php.net/?id=50807&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=50807&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=50807&r=trysnapshot53 Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=50807&r=trysnapshot60 Fixed in SVN: http://bugs.php.net/fix.php?id=50807&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=50807&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=50807&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=50807&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=50807&r=needscript Try newer version: http://bugs.php.net/fix.php?id=50807&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=50807&r=support Expected behavior: http://bugs.php.net/fix.php?id=50807&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=50807&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=50807&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=50807&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=50807&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=50807&r=dst IIS Stability: http://bugs.php.net/fix.php?id=50807&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=50807&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=50807&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=50807&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=50807&r=mysqlcfg

« previous php.bugs (#146823) next »