Doc #66758 [NEW]: Flags and control output buffering functions

From: Date: Sun, 23 Feb 2014 22:43:43 +0000
Subject: Doc #66758 [NEW]: Flags and control output buffering functions
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-11007@lists.php.net to get a copy of this message
From: krzysiekpiasecki at yahoo dot com Operating system: MAC OS X 10.8.5 PHP version: Irrelevant Package: Output Control Bug Type: Documentation Problem Bug description:Flags and control output buffering functions Description: ------------ From PHP manual: PHP_OUTPUT_HANDLER_CLEANABLE const control access to functions: ob_clean(), ob_end_clean(), and ob_get_clean(). Using ob_end_clean(), there is a notice: "ob_end_clean(): failed to discard buffer of default output handler (1)". Using ob_get_clean(), there is even a double notice: "ob_get_clean(): failed to delete buffer of default output handler (1)". I understand, that only cleanable buffer can't be flush and delete. So why in manual these functions are under control PHP_OUTPUT_HANDLER_CLEANABLE const? I'm confused. Test script: --------------- ob_start(null, 0, PHP_OUTPUT_HANDLER_CLEANABLE); ob_end_clean(); ob_start(null, 0, PHP_OUTPUT_HANDLER_CLEANABLE); ob_get_clean(); Expected result: ---------------- No notice, and no buffer after function invocation. Actual result: -------------- ob_end_clean() produces notice: Notice: ob_end_clean(): failed to discard buffer of default output handler (1) ob_get_clean() produces double notice: Notice: ob_get_clean(): failed to discard buffer of default output handler (2) Notice: ob_get_clean(): failed to discard buffer of default output handler (2) -- Edit bug report at https://bugs.php.net/bug.php?id=66758&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=66758&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=66758&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=66758&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=66758&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=66758&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=66758&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=66758&r=needscript Try newer version: https://bugs.php.net/fix.php?id=66758&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=66758&r=support Expected behavior: https://bugs.php.net/fix.php?id=66758&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=66758&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=66758&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=66758&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=66758&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=66758&r=dst IIS Stability: https://bugs.php.net/fix.php?id=66758&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=66758&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=66758&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=66758&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=66758&r=mysqlcfg

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