php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #54388 Php segfaults when ob_end_clean() is called into ob handler
Submitted: 2011-03-26 10:40 UTC Modified: 2013-02-18 00:34 UTC
From: superbaloo at superbaloo dot net Assigned:
Status: No Feedback Package: Reproducible crash
PHP Version: 5.3.6 OS: Linux (at least)
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: superbaloo at superbaloo dot net
New email:
PHP Version: OS:

 

 [2011-03-26 10:40 UTC] superbaloo at superbaloo dot net
Description:
------------
This is an incorrect use of output buffering stuff okay ... but i don't think 
segfaults are a feature.

Test script:
---------------
function handler($message) {
  ob_end_clean();
  echo $message;
}

ob_start('handler');

echo "foo";

Expected result:
----------------
foo

Actual result:
--------------
segfault

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-03-29 11:36 UTC] aharvey@php.net
-Status: Open +Status: Feedback
 [2011-03-29 11:36 UTC] aharvey@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php for *NIX and
http://bugs.php.net/bugs-generating-backtrace-win32.php for Win32

Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.

I can't reproduce this on any machine I have to hand, so a backtrace is definitely going to be needed here.
 [2013-02-18 00:34 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-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 16 06:01:30 2024 UTC