|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #35257 Calling ob_flush after creating an ob callback causes "Segmentation fault"
Submitted: 2005-11-17 12:01 UTC Modified: 2005-11-17 16:21 UTC
From: maddog2k at maddog2k dot net Assigned:
Status: Closed Package: Output Control
PHP Version: 4.4.1 OS: Linux
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: maddog2k at maddog2k dot net
New email:
PHP Version: OS:


 [2005-11-17 12:01 UTC] maddog2k at maddog2k dot net
This is a copy of bug #35156, which is closed...

The code there still segfaults with php4-STABLE-200511160748 (combined with at least Apache 2.0.54/.55).

I disabled Zend Optimizer, no change.

I've put ob_* functions now into 'disabled_functions' and the logs (Shared Hosting Server) remain free from Segmentation faults.

Reproduce code:
(taken from bug #35156)

function nooutput($text) { return ""; } 
print "Before\n"; 
print "Middle\n"; 
print "After\n"; 

Expected result:
(taken from bug #35156)


Actual result:
Apache child Segmentation fault

[Thu Nov 17 11:08:59 2005] [notice] child pid 4657 exit signal Segmentation fault (11)


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2005-11-17 12:42 UTC]
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
Thank you for the report, and for helping us make PHP better.

 [2005-11-17 16:21 UTC] maddog2k at maddog2k dot net
Yes, it's fixed :)
Many thanks !
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Fri Aug 19 09:05:50 2022 UTC