Bug #60322 [Com]: ob_get_clean() now raises an E_NOTICE if no buffers exist
| From: | me at ktamura dot com | Date: | Sun, 25 Dec 2011 00:05:17 +0000 |
| Subject: | Bug #60322 [Com]: ob_get_clean() now raises an E_NOTICE if no buffers exist | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-166078@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=60322&edit=1
ID: 60322
Comment by: me at ktamura dot com
Reported by: weierophinney@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 jani@php.net, who committed
the said changeset.
Previous Comments:
------------------------------------------------------------------------
[2011-11-17 21:42:53] weierophinney@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