Edit report at http://bugs.php.net/bug.php?id=51079&edit=1
ID: 51079 Updated by: paj...@php.net Reported by: tony at marston-home dot demon dot co dot uk Summary: fsockopen will not work on 'localhost' Status: Duplicate Type: Bug Package: Sockets related Operating System: win32 only - Windows XP PHP Version: 5.2.12 Assigned To: pajoye Block user comment: N New Comment: @victorcharlesiii at yahoo dot com Hope does not help a lot, but reading the comment here and in the actual issue where this problem is discussed would have told you that 5.3.4 will have the fix for this problem (http://bugs.php.net/50953). Previous Comments: ------------------------------------------------------------------------ [2010-11-08 20:56:33] victorcharlesiii at yahoo dot com I have been having this problem for a long time, the past 9mos or so. My problem showed up in Drupal, which uses the fuction to make calls for system updates or feeds. I hunted for months for a solution, and found nothing in the Drupal forums that worked for me. I finally decided to sit down and roll up my sleeves and dig down into the PHP code and found the posts that discuss this 10060 error. I did some debugging and voila- the Drupal system's error is occuring because PHP is reporting back the 10060 error. I will post details later, but I'm posting this right now to let you know. Even though I don't share his temperament, I feel for him. There are tons of folks in the Drupal forums reporting this problem, and none of the postings there even touched on this 10060 error, as far as I can see. Sometimes one person will find a fix to the Drupal error by changing a PHP variable- others fix it another way- others still another. None of the fixes worked for me, and now I'm finding that PHP (which DOES have IPv6 enabled in php_info) is reporting the 10060 error. So I'm going to spend the next week doing as much debugging as I can to see if I can figure out what's going on. I just wanted to let others like me know that they're not crazy, they're not alone, and to try and be patient and have hope. IPv6 is new and it will obviously take some time before it is integrated fully and made more stable in our systems. ------------------------------------------------------------------------ [2010-09-07 11:21:15] paj...@php.net Fix and discussions will go now into the bug #50953. ------------------------------------------------------------------------ [2010-09-07 11:19:04] paj...@php.net Fix and discussions will go now into the bug #50963. ------------------------------------------------------------------------ [2010-09-07 10:59:53] cataphr...@php.net Oops I hadn't noticed this bug existed and modified #50953 instead. Sorry. ------------------------------------------------------------------------ [2010-08-25 17:57:19] galatmc at gmail dot com One small note, if this is of any help. First, I am new to PHP, and ran into this same issue with PHPMyAdmin and Drupal. I am on Windows 7 x64, and found some info on another site. However, In my case, I was having an issue with Drupal trying to check http://family-hp/ (my computer name). At the time, my hosts file (c:\windows\system32\etc\hosts) contained: 127.0.0.1 localhost ::1 localhost When I ran the script, I received: called connect('family-hp') faultcode=10060, faultstring=A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. called connect('localhost') faultcode=10060, faultstring=A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. called connect('127.0.0.1') Connected to 127.0.0.1 OK called connect('www.tonymarston.net') Connected to www.tonymarston.net OK (note: I added a piece of code to indicate how 'connect' was called.) I made the following changes to hosts: 1. Added a line for family-hp (not sure why I need this, since IE has no problem resolving my computer name!). 2. Based on information I found on another site, I commented out the IPv6 loopback. New hosts file: 127.0.0.1 family-hp 127.0.0.1 localhost #::1 localhost Rerun of script: called connect('family-hp') Connected to family-hp OK called connect('localhost') Connected to localhost OK called connect('127.0.0.1') Connected to 127.0.0.1 OK called connect('www.tonymarston.net') Connected to www.tonymarston.net OK So, if you give hosts a single choice of IPv4 loopback, and no IPv6 loopback, it works! Mike ------------------------------------------------------------------------ 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/bug.php?id=51079 -- Edit this bug report at http://bugs.php.net/bug.php?id=51079&edit=1