Bug #11058 [Com]: php_network_getaddresses: getaddrinfo failed
| From: | piet at ibuildings dot nl | Date: | Wed, 30 Sep 2015 15:24:33 +0000 |
| Subject: | Bug #11058 [Com]: php_network_getaddresses: getaddrinfo failed | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-196320@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=11058&edit=1
ID: 11058
Comment by: piet at ibuildings dot nl
Reported by: pat at mail dot rit dot edu
Summary: php_network_getaddresses: getaddrinfo failed
Status: Not a bug
Type: Bug
Package: Network related
Operating System: OpenBSD 2.6
PHP Version: 4.0.6
Block user comment: N
Private report: N
New Comment:
Today I had a problem resolving google.com, I got the following error msg:
php_network_getaddresses: getaddrinfo failed: No address associated with hostname
Using the default Fedora 22 packages:
Apache/2.4.16 (Fedora)
PHP 5.6.13 (cli) (built: Sep 3 2015 12:18:26)
When I started my pc in de morning I had no issues resolving a hostname. Somewhere during the day it
went wrong. Restarting Apache solved the problem.
How can be addressed as 'Not a bug'!? It took 1 hour of my time figuring out that a basic
PHP function was failing me.
Previous Comments:
------------------------------------------------------------------------
[2014-12-17 10:07:11] rakeshpatil919 at gmail dot com
i m tryng to get image type by using getimagesize() function from remote network sometimes its
working perfect but sometimes its showing
A PHP Error was encountered
Severity: Warning
Message: getimagesize(): php_network_getaddresses: getaddrinfo failed: Name or service not known
------------------------------------------------------------------------
[2014-07-16 22:45:15] tino dot spirit at gmail dot com
This is not a PHP Bug !
It's a server misconfiguration
Check out my thread at :
http://serverfault.com/questions/612992/nginx-and-php-cant-resolve-hostname-and-make-connection-with-fqdn
I've shared some of my gathered solutions there.
------------------------------------------------------------------------
[2014-04-10 09:05:11] federico dot puntoni at trackset dot com
Still present on 5.3.28
Put the address on /etc/hosts and resolve.
------------------------------------------------------------------------
[2013-04-17 11:28:18] frolow at mail dot ru
rb - descriptor
By HelpSet.ru
------------------------------------------------------------------------
[2012-06-08 13:12:26] jono at foodnotblogs dot com
Confirmed this is a problem in my Php 5.3.13 install. With the following line:
file_get_contents("www.google.com");
If I run it in the command line, it works fine. If I run it through apache I get the getaddrinfo
failed error.
I am using Arch Linux, Kernel 3.3.7. My temporary work around is to do a full stop and start of
Apache. Restarting the service does not solve the problem.
------------------------------------------------------------------------
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
https://bugs.php.net/bug.php?id=11058
--
Edit this bug report at https://bugs.php.net/bug.php?id=11058&edit=1