summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorSara Golemon <pollita@php.net>2005-03-29 04:02:03 (GMT)
committerSara Golemon <pollita@php.net>2005-03-29 04:02:03 (GMT)
commit29ede46872a2d3b79839359a25b2136ca8c92896 (patch)
tree9a65836a047417914309da37c878e4df64771098 /ext
parent1a356bc40ed6d230a93fc8f32159df03eab0dbc4 (diff)
downloadphp-29ede46872a2d3b79839359a25b2136ca8c92896.tar.gz
BugFix #31137 stream_filter_remove() segfaults when stream already closed
Diffstat (limited to 'ext')
-rw-r--r--ext/standard/streamsfuncs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/streamsfuncs.c b/ext/standard/streamsfuncs.c
index 8c04af9..7d2a6ed 100644
--- a/ext/standard/streamsfuncs.c
+++ b/ext/standard/streamsfuncs.c
@@ -1097,7 +1097,7 @@ static void apply_filter_to_stream(int append, INTERNAL_FUNCTION_PARAMETERS)
}
if (filter) {
- RETURN_RESOURCE(ZEND_REGISTER_RESOURCE(NULL, filter, php_file_le_stream_filter()));
+ RETURN_RESOURCE(filter->rsrc_id = ZEND_REGISTER_RESOURCE(NULL, filter, php_file_le_stream_filter()));
} else {
RETURN_FALSE;
}