#46908 [Opn->Bgs]: ob_end_clean() still not working

From: Date: Sat, 20 Dec 2008 16:48:55 +0000
Subject: #46908 [Opn->Bgs]: ob_end_clean() still not working
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-132197@lists.php.net to get a copy of this message
ID: 46908 Updated by: jani@php.net Reported By: chinello at gmail dot com -Status: Open +Status: Bogus Bug Type: Output Control Operating System: Windows PHP Version: 5.2.8 New Comment: You have output_buffering = on in your php.ini. Just turn it off and you'll get the notices. Previous Comments: ------------------------------------------------------------------------ [2008-12-19 19:05:26] chinello at gmail dot com Description: ------------ ob_end_clean() is not producing notices as stated by the manual. This error has been reported before on bug #14226 dated 2 Jan 2002. Reproduce code: --------------- <?php echo 'foo'; ob_end_clean(); echo 'bar'; ?> Expected result: ---------------- If ob_end_clean() would only return false, because we have not created the buffer, then the expected result would be: foobar Actual result: -------------- bar ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=46908&edit=1

« previous php.bugs (#132197) next »