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

Reply via email to