php.net |  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
 [2008-11-25 23:29 UTC] php at info-svc dot com
Description:
------------
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 <http://php.net/support>
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
<http://bugs.php.net/>. 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 <http://php.net/support>.

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) {
    ob_flush();
}


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) {
    ob_flush();
}

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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-11-20 11:56 UTC] vrana@php.net
PHP manual doesn't document PHP internals.
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Tue Jun 15 09:01:23 2021 UTC