ID: 11058 Comment by: jpipes1 at columbus dot rr dot com Reported By: pat at mail dot rit dot edu Status: Bogus Bug Type: Network related Operating System: OpenBSD 2.6 PHP Version: 4.0.6 New Comment:
We have this darn error occur once every few months; our site relies heavily on fopen's to URL resources on our own servers (to separate templates out...), and I have run into these darn errors with absolutely no help from anyone on any forums. This error is NOT fixed. It has to do with something that changed from 4.0.16 to 4.3.4 on Apache 1.3.27 running RedHat 9 too. Please somebody look into this problem. Errors only happen once out of every, say, 20 times, and it always issues the getaddrinfo failed warnings. Then, the warnings start to happen more and more frequently, on code that has been unchanged in months. Finally, a restart clears it and we go on for a few months til another restart. I'm not a C programmer or a Linux guru and I wouldn't know where to start with debugging this stuff, but if someone could take a look at it, it would be helpful. Navigating around these bug indexes is driving me nuts... Sounds like some sort of memory leak or something (i.e. the warnings happening after quite some time, then more frequently until a restart...) Previous Comments: ------------------------------------------------------------------------ [2004-05-13 00:34:48] cosas at minovela dot com i've just installed redhat 9, then the latest version of mysql, php and apache, and i got the error when i tried to run my scripts... ------------------------------------------------------------------------ [2004-05-13 00:32:49] cosas at minovela dot com so nobody give us a solution? i can't upgrade to latest version if i want to use fsockopen :( ------------------------------------------------------------------------ [2004-05-04 14:35:56] jeppe at bundsgaard dot net I guess it is connected to the server - the problem occurs on some, but not all the servers running php4.3 that I am using. Anyway it would be nice with a solution that solves the problem independent of the servers - or that tells exactly what is to be done with the server (I know, this is not the place for such a request - but I don't know where to turn to). ------------------------------------------------------------------------ [2004-02-12 21:15:45] cosas at minovela dot com hello, my php is PHP Version 4.3.4 i've exatctly the same problem. my server isn't conected by dialup, and i got ever the message "php_network_getaddresses: getaddrinfo failed" when i use this line: fsockopen ("dummy_ip", 25, &$errno, &$errstr, 10) it didn't occurs with older versions of php. this IS NOT a server problem, is a problem of PHP, you only need tho make a search at google http://www.google.es/search?hl=es&ie=UTF-8&oe=UTF-8&q=php+php_network_getaddresses%3A+getaddrinfo+failed&meta= target "php_network_getaddresses: getaddrinfo failed" and see results, a lot of people get the same errors. i hope you found a solution for this :) ------------------------------------------------------------------------ [2003-06-04 10:08:18] fcartegnie dot at dot free dot dot dot fr at null dot null Okay. I identified the problem. When apache starts, php or apache gets dns servers entry from /etc/resolv.conf You're using a dialup connection and when logging in, your dns servers have been added at this later moment. So there's a problem with apache or php to get informed that the content of resolv.conf has been updated. Confirmed for PHP 4.3.1/apache_1.3.27 so. Temporary solution is just to reload apache doing a apachectl stop/start ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/11058 -- Edit this bug report at http://bugs.php.net/?id=11058&edit=1