Edit report at http://bugs.php.net/bug.php?id=54388&edit=1

 ID:                 54388
 Updated by:         ahar...@php.net
 Reported by:        superbaloo at superbaloo dot net
 Summary:            Php segfaults when ob_end_clean() is called into ob
                     handler
-Status:             Open
+Status:             Feedback
 Type:               Bug
 Package:            Reproducible crash
 Operating System:   Linux (at least)
 PHP Version:        5.3.6
 Block user comment: N
 Private report:     N

 New Comment:

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.


Previous Comments:
------------------------------------------------------------------------
[2011-03-26 10:40:35] 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


------------------------------------------------------------------------



-- 
Edit this bug report at http://bugs.php.net/bug.php?id=54388&edit=1

Reply via email to