|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #46671 A Note to be added to ob_flush doc
Submitted: 2008-11-25 23:29 UTC Modified: 2009-11-20 11:56 UTC
From: php at info-svc dot com Assigned:
Status: Not a bug Package: Documentation problem
PHP Version: Irrelevant OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: php at info-svc dot com
New email:
PHP Version: OS:


 [2008-11-25 23:29 UTC] php at info-svc dot com
You are receiving this email because your note posted
to the online PHP manual has been removed by one of the editors.

Read the following paragraphs carefully, because they contain
pointers to resources better suited for requesting support or
reporting bugs, none of which are to be included in manual notes
because there are mechanisms and groups in place to deal with
those issues.

The user contributed notes are not an appropriate place to
ask questions, report bugs or suggest new features; please
use the resources listed on <>
for those purposes. This was clearly stated in the page
you used to submit your note, please carefully re-read
those instructions before submitting future contributions.

Bug submissions and feature requests should be entered at
<>. For documentation errors use the
bug system, and classify the bug as "Documentation problem".
Support and ways to find answers to your questions can be found
at <>.

Your note has been removed from the online manual.

----- Copy of your note below -----

It should be noted prominently that ob_flush() runs synchronous to the script and therefore offers no efficiency advantage over the implicit flush.

Robert Chapin
Chapin Information Services

Reproduce code:
$buffering = ob_start();
echo "some very long string goes here";
if ($buffering) {

Benchmark against

$buffering = ob_start();
echo "some very long string goes here";
if ($buffering) {
//    ob_flush();

And compare to

//$buffering = ob_start();
echo "some very long string goes here";
if ($buffering) {

Actual result:
echo() and ob_flush() have the same execution time for long strings.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2009-11-20 11:56 UTC]
PHP manual doesn't document PHP internals.
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Thu Jun 24 10:01:23 2021 UTC