note 96076 added to function.flush
| From: | mitek17 at qmail dot com | Date: | Sun, 07 Feb 2010 15:21:10 +0000 |
| Subject: | note 96076 added to function.flush | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-165724@lists.php.net to get a copy of this message | ||
I've just found that in PHP version > 5.2.9 flush() stopped working for me.
I used the following at the end of every PHP page to send the page/flush the buffers and as soon as
I upgraded PHP to 5.2.10-5.2.12 all my pages stopped loading at all.
function SendResponse()
{
ob_flush();
flush();
}
After isolating a problem it pointed to flush() call.
If I comment it out everything starts working.
Any thoughts why this happens?
The manual clearly says that this sequence is correct. Maybe php.ini settings should be updated?
PS FreeBSD7, Apache2.2 or 1.3,
output_buffering =on,
zlib.output.compression = on
----
Server IP: 69.147.83.197
Probable Submitter: 202.164.198.238 (proxied: 202.164.198.238)
----
Manual Page -- http://www.php.net/manual/en/function.flush.php
Edit -- https://master.php.net/note/edit/96076
Del: integrated -- https://master.php.net/note/delete/96076/integrated
Del: useless -- https://master.php.net/note/delete/96076/useless
Del: bad code -- https://master.php.net/note/delete/96076/bad+code
Del: spam -- https://master.php.net/note/delete/96076/spam
Del: non-english -- https://master.php.net/note/delete/96076/non-english
Del: in docs -- https://master.php.net/note/delete/96076/in+docs
Del: other reasons-- https://master.php.net/note/delete/96076
Reject -- https://master.php.net/note/reject/96076
Search -- https://master.php.net/manage/user-notes.php