Bug #54896 [Ctl->Fbk]: Connection to localhost doesn't work in Apache SAPI but works in CLI and CGI

From: Date: Wed, 01 Jun 2011 11:25:53 +0000
Subject: Bug #54896 [Ctl->Fbk]: Connection to localhost doesn't work in Apache SAPI but works in CLI and CGI
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-161091@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=54896&edit=1

 ID:                 54896
 Updated by:         cataphract@php.net
 Reported by:        neweracracker at gmail dot com
 Summary:            Connection to localhost doesn't work in Apache SAPI
                     but works in CLI and CGI
-Status:             Critical
+Status:             Feedback
 Type:               Bug
 Package:            Streams related
 Operating System:   Windows 7
 PHP Version:        5.3SVN-2011-05-20 (snap)
 Assigned To:        cataphract
 Block user comment: N
 Private report:     N

 New Comment:

Please make sure you are using the Apache binaries from Apache Lounge.

I could reproduce this on a build of Apache that couldn't listen on IPv6
(try adding "Listen [::1]:80" to your httpd.conf and see if Apache
starts), but not with Apache Lounge's binaries.


Previous Comments:
------------------------------------------------------------------------
[2011-05-31 02:37:38] pajoye@php.net

Gustavo, pls check this out as well.

------------------------------------------------------------------------
[2011-05-24 18:31:40] neweracracker at gmail dot com

This bug seems to be a consequence of bug #54918
It works flawless prior to this commit
svn.php.net/viewvc?view=revision&revision=310691

------------------------------------------------------------------------
[2011-05-21 00:55:40] neweracracker at gmail dot com

Description:
------------
I have downloaded a snapshot of php 5.3.7 (Revision: 311276) from
windows.php.net/snapshots/ and I am using php.ini-production as my
php.ini file

IPv6 is enabled in my machine.

Using Apache and running the test script I got "bool(false)"
Using nginx (with php fastcgi) and running the test script I got
"resource(1) of type (stream)"
Running php from the cmd line and running the test script I got
"resource(4) of type (stream)"

I think it is supposed to work with all situations.
Please attempt to reproduce and fix this bug.

Thank you.

Test script:
---------------
<?php
var_dump( @fsockopen('localhost',80) );
?>



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



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


Thread (17 messages)

« previous php.bugs (#161091) next »