php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #60322 ob_get_clean() now raises an E_NOTICE if no buffers exist
Submitted: 2011-11-17 21:42 UTC Modified: 2011-12-27 08:40 UTC
From: weierophinney@php.net Assigned: kalle (profile)
Status: Closed Package: Output Control
PHP Version: 5.4.0RC1 OS: Linux 64bit
Private report: No CVE-ID: None
 [2011-11-17 21:42 UTC] 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-11-18 01:50 UTC] kalle@php.net
-Status: Open +Status: Assigned
 [2011-11-18 01:52 UTC] kalle@php.net
-Status: Open +Status: Assigned -Assigned To: +Assigned To: kalle
 [2011-12-25 00:05 UTC] 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-12-27 08:14 UTC] stas@php.net
-Status: Assigned +Status: Closed
 [2011-12-27 08:14 UTC] 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-27 08:40 UTC] laruence@php.net
odd, why the svn commit doesn't not push to this entry? 
http://svn.php.net/viewvc?view=revision&revision=321404
 [2012-04-18 09:46 UTC] laruence@php.net
Automatic comment on behalf of stas
Revision: http://git.php.net/?p=php-src.git;a=commit;h=63e5f97da40470c00c1b53f95a163076184619ff
Log: fix bug #60322 (ob_get_clean() now raises an E_NOTICE if no buffers exist)
 [2012-07-24 23:37 UTC] rasmus@php.net
Automatic comment on behalf of stas
Revision: http://git.php.net/?p=php-src.git;a=commit;h=63e5f97da40470c00c1b53f95a163076184619ff
Log: fix bug #60322 (ob_get_clean() now raises an E_NOTICE if no buffers exist)
 [2013-11-17 09:34 UTC] laruence@php.net
Automatic comment on behalf of stas
Revision: http://git.php.net/?p=php-src.git;a=commit;h=63e5f97da40470c00c1b53f95a163076184619ff
Log: fix bug #60322 (ob_get_clean() now raises an E_NOTICE if no buffers exist)
 
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Wed Feb 01 19:03:58 2023 UTC