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

From: Date: Wed, 01 Jun 2011 14:02:17 +0000
Subject: Bug #54896 [Com]: 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-161097@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
 Comment by:         neweracracker at gmail dot com
 Reported by:        neweracracker at gmail dot com
 Summary:            Connection to localhost doesn't work in Apache SAPI
                     but works in CLI and CGI
 Status:             Assigned
 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:

I don't see this problem when apache is listening in ipv6 but I see when
only ipv4 is being listened.

Please try my mysql example. If this is fixed. then bug #54832 will be
fixed as well since mysqlnd uses streams.


Previous Comments:
------------------------------------------------------------------------
[2011-06-01 15:56:56] pajoye@php.net

@neweracracker at gmail dot com

He said it cannot reproduce it. Do you still see this problem?

------------------------------------------------------------------------
[2011-06-01 15:51:29] neweracracker at gmail dot com

Then try reproducing with mysql listening in 127.0.0.1:3306

<?php
var_dump( @fsockopen('localhost',3306) );
?>

If it connects then bug is fixed.

------------------------------------------------------------------------
[2011-06-01 13:25:51] cataphract@php.net

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.

------------------------------------------------------------------------
[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

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


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=54896


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


Thread (17 messages)

« previous php.bugs (#161097) next »