Edit report at https://bugs.php.net/bug.php?id=51658&edit=1
ID: 51658 Updated by: php-bugs@lists.php.net Reported by: slusarz at curecanti dot org Summary: Segfault when using stream_filter_append() -Status: Feedback +Status: No Feedback Type: Bug Package: Streams related Operating System: Linux PHP Version: 5.3.2 New Comment: 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. Previous Comments: ------------------------------------------------------------------------ [2010-05-12 11:47:40] m...@php.net Thank you for this bug report. To properly diagnose the problem, we need a short but complete example script to be able to reproduce this bug ourselves. A proper reproducing script starts with <?php and ends with ?>, is max. 10-20 lines long and does not require any external resources such as databases, etc. If the script requires a database to demonstrate the issue, please make sure it creates all necessary tables, stored procedures etc. Please avoid embedding huge scripts into the report. ------------------------------------------------------------------------ [2010-04-30 20:59:33] slusarz at curecanti dot org I don't have the time to try to track this down further. The bug still exists, but it obviously requires something more (in terms of program state) than a simple test script can recreate. ------------------------------------------------------------------------ [2010-04-30 00:09:35] fel...@php.net I cannot reproduce this. We need a proper test case. ------------------------------------------------------------------------ [2010-04-26 21:57:21] slusarz at curecanti dot org I can't provide a simple test case - it appears that it takes something more than just appending a write filter to a stream (the error is occurring after tens of thousands lines of code were run). But I did manage to determine that this only happens if the script exits soon after the filter_append with an explicit 'exit' call. e.g.: ----- [...code...] $fp = fopen('php://temp', 'w+'); stream_filter_register('user_filter', 'User_Filter_Class_Name'); stream_filter_append($fp, 'user_filter', STREAM_FILTER_WRITE); print "TEST"; exit; [...code...] ----- will segfault and will not output "TEST" to the browser. If 'exit;' is removed, no segfault occurs. ------------------------------------------------------------------------ [2010-04-25 12:08:08] paj...@php.net Thank you for this bug report. To properly diagnose the problem, we need a short but complete example script to be able to reproduce this bug ourselves. A proper reproducing script starts with <?php and ends with ?>, is max. 10-20 lines long and does not require any external resources such as databases, etc. If the script requires a database to demonstrate the issue, please make sure it creates all necessary tables, stored procedures etc. Please avoid embedding huge scripts into the report. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=51658 -- Edit this bug report at https://bugs.php.net/bug.php?id=51658&edit=1