|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2014-02-23 22:46 UTC] krzysiekpiasecki at yahoo dot com
-PHP Version: Irrelevant
+PHP Version: 5.5.8
[2014-02-23 22:46 UTC] krzysiekpiasecki at yahoo dot com
[2014-07-07 05:26 UTC] yohgaki@php.net
-Type: Documentation Problem
+Type: Bug
-Assigned To:
+Assigned To: mike
[2014-07-07 05:26 UTC] yohgaki@php.net
[2014-07-07 07:47 UTC] mike@php.net
-Status: Assigned
+Status: Not a bug
[2014-07-07 07:47 UTC] mike@php.net
[2014-07-07 07:50 UTC] mike@php.net
-Status: Not a bug
+Status: Re-Opened
-Type: Bug
+Type: Documentation Problem
[2014-07-07 07:50 UTC] mike@php.net
[2014-07-15 18:22 UTC] mike@php.net
-Assigned To: mike
+Assigned To: yohgaki
[2014-07-15 18:22 UTC] mike@php.net
[2014-07-15 23:07 UTC] yohgaki@php.net
[2014-07-16 01:35 UTC] yohgaki@php.net
[2014-07-16 01:35 UTC] yohgaki@php.net
-Status: Re-Opened
+Status: Closed
[2020-02-07 06:08 UTC] phpdocbot@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 18:00:01 2025 UTC |
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)