From: brian at blueo2 dot com Operating system: FreeBSD 5.4,6.0,amd64 PHP version: 5.1.2 PHP Bug Type: HTTP related Bug description: Memory before HTTP response
Description: ------------ 1) Loading several URLS that are running fread operations and displaying the binary output to the browser 2) While those URLs are still processing (using a Flash app), redirect through a <a href> link to another PHP pahe 3) Data is presented before the HTTP/1.1 response header from a previous request. Reproduce code: --------------- <?php $fp = fopen('/dev/zero', 'ro'); while ($d = fread($fp, 1024)) { echo $d; flush(); } ?> Expected result: ---------------- Not getting the results from previous requests before HTTP headers. Actual result: -------------- Data from previous request before HTTP/1.1 200 OK and additional headers. -- Edit bug report at http://bugs.php.net/?id=36076&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=36076&r=trysnapshot44 Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=36076&r=trysnapshot51 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=36076&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=36076&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=36076&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=36076&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=36076&r=needscript Try newer version: http://bugs.php.net/fix.php?id=36076&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=36076&r=support Expected behavior: http://bugs.php.net/fix.php?id=36076&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=36076&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=36076&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=36076&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=36076&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=36076&r=dst IIS Stability: http://bugs.php.net/fix.php?id=36076&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=36076&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=36076&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=36076&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=36076&r=mysqlcfg