#23826 [NEW]: ob_end_clean() returns error notice when buffer is empty

From: Date: Tue, 27 May 2003 06:21:14 +0000
Subject: #23826 [NEW]: ob_end_clean() returns error notice when buffer is empty
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-40479@lists.php.net to get a copy of this message
From: jc at mega-bucks dot co dot jp Operating system: Red Hat Linux 8.0 PHP version: 4.3.2RC4 PHP Bug Type: Output Control Bug description: ob_end_clean() returns error notice when buffer is empty I get the following notice/error when calling ob_end_clean() Notice: ob_end_clean(): failed to delete buffer. No buffer to delete. #1 - why is it an error to call ob_end_clean() on an empty output buffer? #2 - Must one check before hand if the output buffer has any content, if so the documentation should state this. Thanks! PS I am using PHP 4.3.2RC3 -- Edit bug report at http://bugs.php.net/?id=23826&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=23826&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=23826&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=23826&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=23826&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=23826&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=23826&r=support Expected behavior: http://bugs.php.net/fix.php?id=23826&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=23826&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=23826&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=23826&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=23826&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=23826&r=dst IIS Stability: http://bugs.php.net/fix.php?id=23826&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=23826&r=gnused

« previous php.bugs (#40479) next »