diff --git a/ext/standard/filters.c b/ext/standard/filters.c index 88e5d098446..7b07514fc88 100644 --- a/ext/standard/filters.c +++ b/ext/standard/filters.c @@ -50,6 +50,7 @@ static php_stream_filter_status_t strfilter_rot13_filter( if (bucket->buf_type == IS_UNICODE) { /* rot13 is silly enough, don't apply it to unicode data */ + php_stream_bucket_delref(bucket TSRMLS_CC); return PSFS_ERR_FATAL; } php_strtr(bucket->buf.s, bucket->buflen, rot13_from, rot13_to, 52); @@ -286,6 +287,7 @@ static php_stream_filter_status_t strfilter_strip_tags_filter( if (bucket->buf_type == IS_UNICODE) { /* Uh oh! */ + php_stream_bucket_delref(bucket TSRMLS_CC); return PSFS_ERR_FATAL; }