ID:               26238
 Updated by:       [EMAIL PROTECTED]
 Reported By:      spam at vrana dot cz
-Status:           Verified
+Status:           Closed
 Bug Type:         Documentation problem
 Operating System: *
 PHP Version:      4CVS, 5CVS
 New Comment:

This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation
better.

flush(): "You need to call both ob_flush() and flush() to flush the
output buffers."

output_buffering: "As of PHP 4.3.5, this directive is always Off in
PHP-CLI."



Previous Comments:
------------------------------------------------------------------------

[2004-05-27 16:50:09] spam at vrana dot cz

PHP-CLI has output_buffering always Off as of 4.3.5. For the others it
seems that output is flushed if both flush() and ob_flush() are called.

------------------------------------------------------------------------

[2004-02-18 18:33:52] scottmacvicar at ntlworld dot com

Setting output_buffering to a value causes it to create an ouput buffer
on startup using the default output handler. You can see this using
print_r(ob_get_status()); within the script.

ob_flush() should be used in this case rather than flush() since the
latter only calls the backends flush method. So i believe this bug is
bogus, though it could be a documentation problem.

------------------------------------------------------------------------

[2004-02-18 17:19:31] [EMAIL PROTECTED]

Here's nice and short reproduce script:

# php -d'output_buffering=2' -r 'while(1) {echo "."; flush(); sleep(1);
}'



------------------------------------------------------------------------

[2003-11-17 13:14:20] scottm at spamcop dot net

Confirmed.

If you set output_buffering = 3 then it will flush them in groups of
three.

Running RH9, Apache 1.3.29 and PHP 4.3.4

------------------------------------------------------------------------

[2003-11-13 08:40:59] 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)


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=26238&edit=1

Reply via email to