Doc #62261 [Opn->Csd]: ob_start callback flags have changed
| From: | frozenfire@php.net | Date: | Sat, 09 Jun 2012 22:36:08 +0000 |
| Subject: | Doc #62261 [Opn->Csd]: ob_start callback flags have changed | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-8450@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=62261&edit=1
ID: 62261
Updated by: frozenfire@php.net
Reported by: casper at langemeijer dot eu
Summary: ob_start callback flags have changed
-Status: Open
+Status: Closed
Type: Documentation Problem
Package: Output Control
PHP Version: 5.4.3
-Assigned To:
+Assigned To: frozenfire
Block user comment: N
Private report: N
New Comment:
This bug has been fixed in SVN.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
For Windows:
http://windows.php.net/snapshots/
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2012-06-09 22:35:54] frozenfire@php.net
Automatic comment from SVN on behalf of frozenfire
Revision: http://svn.php.net/viewvc/?view=revision&revision=326071
Log: Documented PHP_OUTPUT_HANDLER_* constants.
Updated ob_start() function output_callback parameter description to refer to PHP_OUTPUT_HANDLER_*
constants collectively.
Removed empty PHP_OUTPUT_HANDLER_* constants from reserved.constants.core.
Closes bug #62261.
------------------------------------------------------------------------
[2012-06-08 08:25:39] casper at langemeijer dot eu
Description:
------------
In my investigations on bug #61272 I found that since the output buffering
rewrite in PHP 5.4 the flags passed to the second parameter of the callback
passed to ob_start() have changed.
See the test in tests/output/ob_017.phpt and run the new test on PHP 5.3. From
the output I've discovered the following: (might not be complete)
- PHP_OUTPUT_HANDLER_CONT seems to have a new meaning. It use to signal: more is
coming. Now it means: this is a continuation of something you've received
before.
- A new constant with value 8 seems to have been introduced. I don't know it's
meaning, but I'm guessing it means output buffering will be ended after this
call (ob_end_clean() causes a call to the callback with the 8 flag set)
BTW: I think the new situation is better, but needs to be documented. Especially
because this is a functional change.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=62261&edit=1