#46671 [NEW]: A Note to be added to ob_flush doc
| From: | php at info-svc dot com | Date: | Tue, 25 Nov 2008 23:29:20 +0000 |
| Subject: | #46671 [NEW]: A Note to be added to ob_flush doc | ||
| Groups: | php.doc.bugs | ||
| Request: | Send a blank email to doc-bugs+get-1540@lists.php.net to get a copy of this message | ||
From: php at info-svc dot com
Operating system: Linux
PHP version: Irrelevant
PHP Bug Type: Documentation problem
Bug description: A Note to be added to ob_flush doc
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 bug report at http://bugs.php.net/?id=46671&edit=1
--
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=46671&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=46671&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=46671&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=46671&r=fixedcvs
Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=46671&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=46671&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=46671&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=46671&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=46671&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=46671&r=support
Expected behavior: http://bugs.php.net/fix.php?id=46671&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=46671&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=46671&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=46671&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=46671&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=46671&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=46671&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=46671&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=46671&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=46671&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=46671&r=mysqlcfg