|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #33975 ob_end_clean() does call output handler: unadequately result?
Submitted: 2005-08-03 13:16 UTC Modified: 2005-08-03 15:48 UTC
From: php at koterov dot ru Assigned:
Status: Not a bug Package: Output Control
PHP Version: 4.3.11 OS: any
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 this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: php at koterov dot ru
New email:
PHP Version: OS:


 [2005-08-03 13:16 UTC] php at koterov dot ru
Seems ob_end_clean() does call output handler, but not ignore it. It is not adequately I suppose.

The same bug is at, but it is on "No feedback" status and I cannot change it to "Open".

Reproduce code:
$GLOBALS['called'] = false;
function func($buf) {
  $GLOBALS['called'] = true;
  return $buf;

Expected result:

Actual result:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2005-08-03 15:02 UTC]
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at and the instructions on how to report
a bug at

 [2005-08-03 15:40 UTC] php at koterov dot ru
Nothing about this behaviour in documentation, only user comment. Does user comment have the same status as official documentation?

Do you thing this behaviour of ob_end_clean() is logical and appropriate?
 [2005-08-03 15:48 UTC]
We can't change something that existed for ages just because it looks wrong for you and isn't documented, as this change may break BC.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Jun 16 11:01:29 2024 UTC