|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2003-11-13 08:40 UTC] spam at vrana dot cz
Description:
------------
I have set output_buffering = 4096 and flush(), ob_implicit_flush(), ob_flush() and similar functions doesn't work. This is reproducible in PHP Apache module, in PHP-CLI and also on Linux.
Reproduce code:
---------------
while (true) {
echo ".";
flush();
sleep(1);
}
Expected result:
----------------
. (1 second) . (1 second) ...
Actual result:
--------------
nothing (for output_buffering seconds)
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 22:00:01 2025 UTC |
Here's nice and short reproduce script: # php -d'output_buffering=2' -r 'while(1) {echo "."; flush(); sleep(1); }'