From: brandonkahre at charter dot net Operating system: Windows PHP version: 5.2.5 PHP Bug Type: HTTP related Bug description: fopen hangs with recent upgrade
Description: ------------ When opening a file using fopen and a network wrapper (HTTP), the page will lag before finishing. The response from fopen is fast (determined by echo'ing the return, and any code that is to be processed after the fopen function is processed without delay. It is only when the page is ready to finish loading that the lag becomes noticeable. The lag takes 3-6 seconds and does not seem to be affected by any timeout settings in the php.ini file. This problem does not exist in PHP 5.1.2, and started immediately after upgrading to PHP 5.2.4 and 5.2.5. This problem also seems to only exist on my Windows server. Reproduce code: --------------- <?php echo (file_get_contents("http://www.google.com")); ?> -- Edit bug report at http://bugs.php.net/?id=44009&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=44009&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=44009&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=44009&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=44009&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=44009&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=44009&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=44009&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=44009&r=needscript Try newer version: http://bugs.php.net/fix.php?id=44009&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=44009&r=support Expected behavior: http://bugs.php.net/fix.php?id=44009&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=44009&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=44009&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=44009&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=44009&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=44009&r=dst IIS Stability: http://bugs.php.net/fix.php?id=44009&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=44009&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=44009&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=44009&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=44009&r=mysqlcfg