php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #46908 ob_end_clean() still not working
Submitted: 2008-12-19 19:05 UTC Modified: 2008-12-20 17:34 UTC
From: chinello at gmail dot com Assigned:
Status: Not a bug Package: Output Control
PHP Version: 5.2.8 OS: Windows
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: chinello at gmail dot com
New email:
PHP Version: OS:

 

 [2008-12-19 19:05 UTC] 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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-12-20 16:48 UTC] jani@php.net
You have output_buffering = on in your php.ini. Just turn it off and 
you'll get the notices.
 [2008-12-20 17:34 UTC] chinello at gmail dot com
hmm. ok. thank you.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Jul 13 09:01:32 2025 UTC