Edit report at https://bugs.php.net/bug.php?id=60322&edit=1
ID: 60322 Comment by: me at ktamura dot com Reported by: weierophin...@php.net Summary: ob_get_clean() now raises an E_NOTICE if no buffers exist Status: Assigned Type: Bug Package: Output Control Operating System: Linux 64bit PHP Version: 5.4.0RC1 Assigned To: kalle Block user comment: N Private report: N New Comment: It looks like this change is due to http://svn.php.net/viewvc? view=revision&revision=296062 Perhaps you want to ask j...@php.net, who committed the said changeset. Previous Comments: ------------------------------------------------------------------------ [2011-11-17 21:42:53] weierophin...@php.net Description: ------------ Prior to 5.4.0RC1, when calling ob_get_clean() with no buffers present, no errors were raised. Starting with 5.4.0RC1, the function now raises an E_NOTICE in such situations. Test script: --------------- ini_set('display_errors', true); error_reporting(-1); $return = ob_get_clean(); Expected result: ---------------- (no output) Actual result: -------------- Notice: ob_get_clean(): failed to delete buffer. No buffer to delete ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=60322&edit=1