ID: 40234 User updated by: silverbanana at gmx dot de -Summary: getaddrinfo ain't working, i think. Reported By: silverbanana at gmx dot de Status: Bogus Bug Type: Network related Operating System: Windows XP SP2 PHP Version: 6CVS-2007-01-25 (snap) New Comment:
Just because some Windows API doesn't return what we want doesn't mean PHP isn't responsible for that. I think it's quite interesting that PHP has it's problems when running as fastCGI under Windows. I just glanced at the source and found some interesting comment: --- cgi_main.c,L1264: for windows, socket listening is broken in the fastcgi library itself so dissabling this feature on windows till time is available to fix it --- I'm not sure what exactly was disabled, since fastcgi works so far, but there might be side-effects. So I think it's worth to take a second look on that error. Previous Comments: ------------------------------------------------------------------------ [2007-01-26 14:44:02] [EMAIL PROTECTED] Not PHP problem. ------------------------------------------------------------------------ [2007-01-26 14:33:38] silverbanana at gmx dot de It just came into my mind that other PHP functions will also need to resolve names. So I tried this one: $a = file_get_contents("http://www.google.de"); This results on PHP-CGI with Apache in: Warning: file_get_contents() [function.file-get-contents]: php_network_getaddresses: getaddrinfo failed: Der angegebene Host ist unbekannt. in D:\path\file.php So some Windows-API-function is failing. Btw, hosts is world readable (I think that's the way it should be, right) on my system so that can hardly be the reason. ------------------------------------------------------------------------ [2007-01-25 22:01:12] [EMAIL PROTECTED] >I mean, its written in hosts. Then the CGI binary should have enough privileges to read it. ------------------------------------------------------------------------ [2007-01-25 21:52:59] silverbanana at gmx dot de I justed tried to disable my firewall. It didn't make any difference. Besides, asking for the address of localhost shouldn't need any network traffic, should it? I mean, its written in hosts. ------------------------------------------------------------------------ [2007-01-25 15:43:42] [EMAIL PROTECTED] Please make sure your firewall does not block DNS requests issued by gethostbynamel(). Just disable the firewall for some time. And please use 5.2, not PHP6. PHP6 is in pre-alpha stage, which means it's a bit early to test it yet. ------------------------------------------------------------------------ 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/40234 -- Edit this bug report at http://bugs.php.net/?id=40234&edit=1