Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
--TEST--
zlib.inflate filter removed by the error handler of its own notice
zlib.inflate filter removal denied while handling its own notice
--EXTENSIONS--
zlib
--FILE--
Expand All @@ -20,11 +20,15 @@ $filter = stream_filter_append($fp, 'zlib.inflate', STREAM_FILTER_READ);
var_dump(fread($fp, 10));
echo "Done\n";
?>
--EXPECT--
--EXPECTF--
fwrite(): zlib: data error
bool(true)

Warning: stream_filter_remove(): Cannot remove filter while it is being applied in %s on line %d
bool(false)
bool(false)
fread(): zlib: data error
bool(true)

Warning: stream_filter_remove(): Cannot remove filter while it is being applied in %s on line %d
bool(false)
bool(false)
Done
Loading