|  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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
45 - 43 = ?
Subscribe to this entry?

 [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: Fri Jun 21 18:01:31 2024 UTC