|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2017-04-10 08:05 UTC] requinix@php.net
-Summary: ob_*clean* methods do not respect missing
cleanable flag
+Summary: ob_*clean* methods do not respect missing
cleanable flag; same for flushing
-Status: Open
+Status: Verified
-PHP Version: Irrelevant
+PHP Version: 7.1.3
[2017-04-10 08:05 UTC] requinix@php.net
[2017-04-28 07:43 UTC] mike@php.net
-Status: Verified
+Status: Not a bug
[2017-04-28 07:43 UTC] mike@php.net
[2017-04-28 07:48 UTC] mike@php.net
[2017-04-28 07:50 UTC] requinix@php.net
-Status: Not a bug
+Status: Verified
-Type: Bug
+Type: Documentation Problem
[2017-04-28 07:50 UTC] requinix@php.net
[2024-01-07 14:03 UTC] girgias@php.net
[2024-01-07 14:04 UTC] girgias@php.net
-Status: Verified
+Status: Closed
-Assigned To:
+Assigned To: girgias
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 20:00:01 2025 UTC |
Description: ------------ This is happening in both php 5.6.29 and php 7.1.0 haven't checked any other versions -> that is why I marked it as version irrelevant as it seems to be version independent Test script: --------------- function callback($buffer, $status) { return "callback $buffer"; } ob_start( 'callback', 0, PHP_OUTPUT_HANDLER_FLUSHABLE | PHP_OUTPUT_HANDLER_REMOVABLE); echo 'test'; echo ob_get_clean(); //this should not work as no CLEANABLE flag was set on ob_start //ob_end_clean is ran as well //ob_clean -> failed to delete buffer notice echo "\n".ob_get_level(); Expected result: ---------------- PHP Notice on ob_start not having the correct flags set for action for the following methods ob_clean() ob_get_clean() ob_end_clean() Actual result: -------------- ob_get_clean() - retrieves buffer content, destroys the buffer ob_end_clean() - buffer destroyed