ID: 36076 Updated by: [EMAIL PROTECTED] Reported By: brian at blueo2 dot com -Status: Open +Status: Feedback Bug Type: HTTP related Operating System: FreeBSD 5.4,6.0,amd64 PHP Version: 5.1.2 New Comment:
Thank you for this bug report. To properly diagnose the problem, we need a short but complete example script to be able to reproduce this bug ourselves. A proper reproducing script starts with <?php and ends with ?>, is max. 10-20 lines long and does not require any external resources such as databases, etc. If possible, make the script source available online and provide an URL to it here. Try to avoid embedding huge scripts into the report. Previous Comments: ------------------------------------------------------------------------ [2006-01-19 01:51:37] brian at blueo2 dot com 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 this bug report at http://bugs.php.net/?id=36076&edit=1