|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2014-04-03 07:10 UTC] mike@php.net
[2014-04-03 07:10 UTC] mike@php.net
-Status: Open
+Status: Closed
[2014-04-03 08:02 UTC] ab@php.net
[2014-04-03 08:04 UTC] ab@php.net
[2014-04-10 04:47 UTC] tyrael@php.net
[2014-10-07 23:15 UTC] stas@php.net
[2014-10-07 23:26 UTC] stas@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 22:00:01 2025 UTC |
Description: ------------ An exit statement inside the implementation of a custom stream filter results in a segmentation fault. I don't have gdb on this machine, so cannot provide a stack trace. But it's quite easy to reproduce. Test script: --------------- <?php class before_body_foo_filter extends php_user_filter { function filter($in, $out, &$consumed, $closing) { // this exit; causes a segfault exit; } } stream_filter_register('before_body_foo', 'before_body_foo_filter'); $fp = fopen('php://output', 'w'); stream_filter_append($fp, 'before_body_foo', STREAM_FILTER_WRITE, 'YES'); fwrite($fp, 'hello');