Edit report at https://bugs.php.net/bug.php?id=60322&edit=1
ID: 60322 Updated by: s...@php.net Reported by: weierophin...@php.net Summary: ob_get_clean() now raises an E_NOTICE if no buffers exist -Status: Assigned +Status: Closed 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: This bug has been fixed in SVN. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. For Windows: http://windows.php.net/snapshots/ Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2011-12-25 00:05:17] me at ktamura dot com 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. ------------------------------------------------------------------------ [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