Edit report at https://bugs.php.net/bug.php?id=60322&edit=1
ID: 60322 Updated by: ka...@php.net Reported by: weierophin...@php.net Summary: ob_get_clean() now raises an E_NOTICE if no buffers exist -Status: Open +Status: Assigned Type: Bug Package: Output Control Operating System: Linux 64bit PHP Version: 5.4.0RC1 -Assigned To: +Assigned To: kalle Block user comment: N Private report: N 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