#45195 [NEW]: ob_start handler chunk behavior written wrong
| From: | sv4php at fmethod dot com | Date: | Fri, 06 Jun 2008 21:04:30 +0000 |
| Subject: | #45195 [NEW]: ob_start handler chunk behavior written wrong | ||
| Groups: | php.doc.bugs | ||
| Request: | Send a blank email to doc-bugs+get-870@lists.php.net to get a copy of this message | ||
From: sv4php at fmethod dot com
Operating system: Win
PHP version: Irrelevant
PHP Bug Type: Documentation problem
Bug description: ob_start handler chunk behavior written wrong
Description:
------------
The documentation of ob_start says that if chunk size is specified, then
the handler is called on the first newline in the output.
This did not make sense since what if the output was binary and had no new
lines chunking would not work at all, I tested and found that the handler
instead "snaps" to the first boundary after an echo is performed.
I.e. each echo operation is atomic, so if I had a chunk size 10 bytes, and
I echo '123456', '123456', '123456', '123456'; then the
handler will be
called with 2 times, with 12 bytes each time, although there are no
newlines in the output.
--
Edit bug report at http://bugs.php.net/?id=45195&edit=1
--
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=45195&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=45195&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=45195&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=45195&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=45195&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=45195&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=45195&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=45195&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=45195&r=support
Expected behavior: http://bugs.php.net/fix.php?id=45195&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=45195&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=45195&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=45195&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=45195&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=45195&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=45195&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=45195&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=45195&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=45195&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=45195&r=mysqlcfg