|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #48634 Calling ob_get_flush() inside an output handler causes crashes
Submitted: 2009-06-22 00:34 UTC Modified: 2013-02-18 00:33 UTC
From: Assigned:
Status: No Feedback Package: Reproducible crash
PHP Version: 5.* (2009-07-25) OS: Darwin9 (MacOS X 10.5)
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.
Block user comment
Status: Assign to:
Bug Type:
New email:
PHP Version: OS:


 [2009-06-22 00:34 UTC]
The subject kind of says most of it. Under both GDB and Valgrind, PHP enters a massive recursion until it finally crashes by overrunning the stack, which is expected, according to a comment in a test that a fix needs to be backported from HEAD. So this bug is mostly about "please backport this fix", I suppose.

Reproduce code:
See tests/output/ob_11.phpt

Expected result:
A fatal error saying "you can't do that".

Actual result:
Endless recursion.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2009-07-17 17:40 UTC]
Does this happen with PHP_5_2 and/or HEAD? (if so, update the version 
 [2009-07-18 01:42 UTC]
Yes, it happens in all three branches.
 [2009-07-21 12:04 UTC]
Correction: This does NOT happen in HEAD.
 [2010-09-20 02:17 UTC]
Wasn't this fixed with the backport of the ob handling API in trunk?
 [2010-09-20 02:17 UTC]
-Status: Open +Status: Feedback
 [2013-02-18 00:33 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Sun Nov 27 09:05:53 2022 UTC