ID:               40279
 Updated by:       [EMAIL PROTECTED]
 Reported By:      SiliconFiend at gmail dot com
-Status:           Open
+Status:           Feedback
 Bug Type:         Sockets related
 Operating System: Windows XP SP2
 PHP Version:      5.2.0
 New Comment:

Please try using this CVS snapshot:

  http://snaps.php.net/php5.2-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5.2-win32-latest.zip




Previous Comments:
------------------------------------------------------------------------

[2007-01-29 22:02:48] SiliconFiend at gmail dot com

Description:
------------
Bug #30057 seems to have regressed. On Windows, when IPv6 is enabled,
[::1] is returned as the first address for localhost, so using
localhost exhibits the same problem.

Other info: Using PHP 5.2.0 in mod_php with Apache 2.2.3 which was
included with XAMPP; IPv6 Support is reported as enabled in phpinfo().
Apache displays page when http://[::1]/ is entered in Firefox, so
Apache is responding to IPv6 requests on port 80.


Reproduce code:
---------------
$handle = fsockopen('[::1]', 80, $errno, $errstr, 5);
if (empty($handle)) {
    echo 'Error ' . $errno . ': ' . $errstr . '<br/>';
    exit("Can't open socket");
}
Or use the reproduce code in #30057.

Expected result:
----------------
No error.

Actual result:
--------------
Warning: fsockopen() [function.fsockopen]: unable to connect to
[::1]:80 (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. )
Error 10060: 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.
Can't open socket


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=40279&edit=1

Reply via email to