Doc #77635 [NEW]: ob_get_clean() is missing one required flag.

From: Date: Mon, 18 Feb 2019 14:11:54 +0000
Subject: Doc #77635 [NEW]: ob_get_clean() is missing one required flag.
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-16417@lists.php.net to get a copy of this message
From: atanas dot angelov dot dev at gmail dot com Operating system: PHP version: Irrelevant Package: Documentation problem Bug Type: Documentation Problem Bug description:ob_get_clean() is missing one required flag. Description: ------------ The docs page for ob_get_clean() (http://php.net/manual/en/function.ob-get-clean.php) does not mention the PHP_OUTPUT_HANDLER_REMOVABLE flag even though it is required since it removes the buffer (ob_end_clean() specifies it correctly). Test script: --------------- // Skipping the PHP_OUTPUT_HANDLER_REMOVABLE flag: ob_start( null, 0, PHP_OUTPUT_HANDLER_CLEANABLE | PHP_OUTPUT_HANDLER_FLUSHABLE ); ob_get_clean(); // Fails with: Notice: ob_get_clean(): failed to discard buffer of default output handler (1) -- Edit bug report at https://bugs.php.net/bug.php?id=77635&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=77635&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=77635&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=77635&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=77635&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=77635&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=77635&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=77635&r=needscript Try newer version: https://bugs.php.net/fix.php?id=77635&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=77635&r=support Expected behavior: https://bugs.php.net/fix.php?id=77635&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=77635&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=77635&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=77635&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=77635&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=77635&r=dst IIS Stability: https://bugs.php.net/fix.php?id=77635&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=77635&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=77635&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=77635&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=77635&r=mysqlcfg

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