Commit 3b749a604ae for php
commit 3b749a604aeea38a6ea4626068d227c7e0ce05c6
Author: Ilia Alshanetsky <ilia@ilia.ws>
Date: Fri Nov 6 18:24:36 2026 -0500
ext/zlib: Expect denied filter removal in error handler test
Since GH-22063, stream_filter_remove() refuses a filter whose chain is
being applied, which covers an error handler run from the zlib.inflate
notice. The filter is no longer freed there, so the test now expects the
warning and false.
diff --git a/ext/zlib/tests/zlib_filter_inflate_error_handler_removes_filter.phpt b/ext/zlib/tests/zlib_filter_inflate_error_handler_removes_filter.phpt
index ee5bab1052f..d1ef98783b6 100644
--- a/ext/zlib/tests/zlib_filter_inflate_error_handler_removes_filter.phpt
+++ b/ext/zlib/tests/zlib_filter_inflate_error_handler_removes_filter.phpt
@@ -20,11 +20,15 @@
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