From: Operating system: Windows 7 PHP version: 5.3SVN-2011-05-20 (snap) Package: Streams related Bug Type: Bug Bug description:Connection to localhost doesn't work in Apache SAPI but works in CLI and CGI
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 bug report at http://bugs.php.net/bug.php?id=54896&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=54896&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=54896&r=trysnapshot53 Try a snapshot (trunk): http://bugs.php.net/fix.php?id=54896&r=trysnapshottrunk Fixed in SVN: http://bugs.php.net/fix.php?id=54896&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=54896&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=54896&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=54896&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=54896&r=needscript Try newer version: http://bugs.php.net/fix.php?id=54896&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=54896&r=support Expected behavior: http://bugs.php.net/fix.php?id=54896&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=54896&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=54896&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=54896&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=54896&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=54896&r=dst IIS Stability: http://bugs.php.net/fix.php?id=54896&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=54896&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=54896&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=54896&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=54896&r=mysqlcfg