Doc #77635 [Opn->Csd]: ob_get_clean() is missing one required flag.

From: Date: Mon, 25 Feb 2019 11:29:52 +0000
Subject: Doc #77635 [Opn->Csd]: ob_get_clean() is missing one required flag.
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-16427@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=77635&edit=1 ID: 77635 Updated by: cmb@php.net Reported by: atanas dot angelov dot dev at gmail dot com Summary: ob_get_clean() is missing one required flag. -Status: Open +Status: Closed Type: Documentation Problem Package: Documentation problem PHP Version: Irrelevant -Assigned To: +Assigned To: cmb Block user comment: N Private report: N New Comment: This bug has been fixed in the documentation's XML sources. Since the online and downloadable versions of the documentation need some time to get updated, we would like to ask you to be a bit patient. Thank you for the report, and for helping us make our documentation better. Previous Comments: ------------------------------------------------------------------------ [2019-02-25 11:29:28] cmb@php.net Automatic comment from SVN on behalf of cmb Revision: http://svn.php.net/viewvc/?view=revision&revision=346900 Log: Fix #77635: ob_get_clean() is missing one required flag ------------------------------------------------------------------------ [2019-02-18 14:11:54] atanas dot angelov dot dev at gmail dot com 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 this bug report at https://bugs.php.net/bug.php?id=77635&edit=1

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