Doc #62261 [NEW]: ob_start callback flags have changed

From: Date: Fri, 08 Jun 2012 08:25:40 +0000
Subject: Doc #62261 [NEW]: ob_start callback flags have changed
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-8442@lists.php.net to get a copy of this message
From: casper at langemeijer dot eu Operating system: PHP version: 5.4.3 Package: Output Control Bug Type: Documentation Problem Bug description:ob_start callback flags have changed 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 bug report at https://bugs.php.net/bug.php?id=62261&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=62261&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=62261&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=62261&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=62261&r=fixed Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=62261&r=needdocs Fixed in release: https://bugs.php.net/fix.php?id=62261&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=62261&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=62261&r=needscript Try newer version: https://bugs.php.net/fix.php?id=62261&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=62261&r=support Expected behavior: https://bugs.php.net/fix.php?id=62261&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=62261&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=62261&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=62261&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=62261&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=62261&r=dst IIS Stability: https://bugs.php.net/fix.php?id=62261&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=62261&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=62261&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=62261&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=62261&r=mysqlcfg

« previous php.doc.bugs (#8442) next »