#46671 [Opn->Bgs]: A Note to be added to ob_flush doc
| From: | vrana@php.net | Date: | Fri, 20 Nov 2009 11:56:51 +0000 |
| Subject: | #46671 [Opn->Bgs]: A Note to be added to ob_flush doc | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-3281@lists.php.net to get a copy of this message | ||
ID: 46671
Updated by: vrana@php.net
Reported By: php at info-svc dot com
-Status: Open
+Status: Bogus
Bug Type: Documentation problem
Operating System: Linux
PHP Version: Irrelevant
New Comment:
PHP manual doesn't document PHP internals.
Previous Comments:
------------------------------------------------------------------------
[2008-11-25 23:29:19] 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.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=46671&edit=1