Bug #60322 [Csd]: ob_get_clean() now raises an E_NOTICE if no buffers exist
| From: | laruence@php.net | Date: | Tue, 27 Dec 2011 08:40:27 +0000 |
| Subject: | Bug #60322 [Csd]: 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-166100@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
Updated by: laruence@php.net
Reported by: weierophinney@php.net
Summary: ob_get_clean() now raises an E_NOTICE if no buffers
exist
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:
odd, why the svn commit doesn't not push to this entry?
http://svn.php.net/viewvc?view=revision&revision=321404
Previous Comments:
------------------------------------------------------------------------
[2011-12-27 08:14:28] stas@php.net
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.
------------------------------------------------------------------------
[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 jani@php.net, who committed
the said changeset.
------------------------------------------------------------------------
[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