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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 21:01:30 2024 UTC