php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #62261 ob_start callback flags have changed
Submitted: 2012-06-08 08:25 UTC Modified: 2012-06-09 22:36 UTC
From: casper at langemeijer dot eu Assigned: frozenfire (profile)
Status: Closed Package: Output Control
PHP Version: 5.4.3 OS:
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: casper at langemeijer dot eu
New email:
PHP Version: OS:

 

 [2012-06-08 08:25 UTC] 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.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-06-09 22:35 UTC] 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-09 22:36 UTC] frozenfire@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: frozenfire
 [2012-06-09 22:36 UTC] frozenfire@php.net
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.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Dec 27 00:01:30 2024 UTC