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:

How exactly did you enable IPv6 support in your Windows?

>when http://[::1]/ is entered in Firefox, so Apache
>is responding to IPv6 requests on port 80.

Try using this address in telnet and MSIE.
Do they work too?


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

[2007-02-01 06:15:29] SiliconFiend at gmail dot com

I should be more clear. Using php.ini-recommended suppressed the php
warning/error output, but the error still occurred.

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

[2007-01-30 18:33:49] SiliconFiend at gmail dot com

Same result with the CVS snapshot. I tried both php.ini-dist and
php.ini-recommended files for the php.ini. The only difference is that
php.ini-recommended didn't display the errors. One note, though,
probably unrelated--using the php5apache2.dll module file from this
snapshot did not allow the server to start--nothing in the error log;
it just immediately stopped after attempting to start it. I had been
using the php5apache2.dll with the PHP version 5.2.0 distributed with
XAMPP. This was the default configuration; I don't know why they didn't
use 2_2. Anyway, changing the LoadModule directive to point to
php5apache2_2.dll allowed the server to start.

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

[2007-01-30 09:02:25] [EMAIL PROTECTED]

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



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

[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