Bug #11058 [Com]: php_network_getaddresses: getaddrinfo failed

From: Date: Thu, 10 Apr 2014 09:05:12 +0000
Subject: Bug #11058 [Com]: php_network_getaddresses: getaddrinfo failed
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-185163@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: federico dot puntoni at trackset dot com 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: Still present on 5.3.28 Put the address on /etc/hosts and resolve. Previous Comments: ------------------------------------------------------------------------ [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. ------------------------------------------------------------------------ [2011-10-11 11:59:08] fakefur at gmail dot com i am having this same problem with PHP 5.3.8 on Arch Linux ... for me it is manifesting in the IMAP_OPEN function the call works if i use an IP Address (but the certificate files so it is not a solution for me) it also works if i do the call from the PHP CLI module (ie, not running in apache) for now i have had to add an entry in my hosts file but obviously this is not a good long term solution ------------------------------------------------------------------------ [2011-01-10 15:29:29] zlisiecki at gmail dot com I have the same problem on SuSE, apache with php 5.3.3. I am calling fsockopen with tls://smtp.gmail.com, 465 and for me it seems php possibly considers tls as wrong characters in this place and the resolver cannot resolv the address. Adding a proper line with an IP of smtp.gmail.com to /etc/hosts appeared to be a provisoric solution. ------------------------------------------------------------------------ [2011-01-06 13:44:51] bostjan at a2o dot si I was experiencing the same problem because the $host variable had some additional spaces at the end. Check with var_dump() and remove invalid characters if any are found. b. ------------------------------------------------------------------------ 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

« previous php.bugs (#185163) next »