You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: ext/zlib/tests/filter_broken_object_options.phpt
+4-1Lines changed: 4 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -17,5 +17,8 @@ stream_filter_append($fp, 'zlib.inflate', STREAM_FILTER_WRITE, new Params);
17
17
fwrite($fp, "Hello world, hopefully not broken\n");
18
18
19
19
?>
20
-
--EXPECT--
20
+
--EXPECTF--
21
+
Deprecated: stream_filter_append(): Passing an object for filter parameters for zlib.deflate is deprecated, call get_object_vars() first instead in %s on line %d
22
+
23
+
Deprecated: stream_filter_append(): Passing an object for filter parameters for zlib.inflate is deprecated, call get_object_vars() first instead in %s on line %d
Deprecated: deflate_init(): Passing an object for argument #2 $option to deflate_init() is deprecated, call get_object_vars() first instead in %s on line %d
17
18
object(DeflateContext)#2 (0) {
18
19
}
20
+
21
+
Deprecated: deflate_init(): Passing an object for argument #2 $option to deflate_init() is deprecated, call get_object_vars() first instead in %s on line %d
Deprecated: inflate_init(): Passing an object for argument #2 $option to inflate_init() is deprecated, call get_object_vars() first instead in %s on line %d
18
+
object(InflateContext)#2 (0) {
19
+
}
20
+
21
+
Deprecated: inflate_init(): Passing an object for argument #2 $option to inflate_init() is deprecated, call get_object_vars() first instead in %s on line %d
Copy file name to clipboardExpand all lines: ext/zlib/tests/gh22142.phpt
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -16,5 +16,6 @@ try {
16
16
}
17
17
18
18
?>
19
-
--EXPECT--
19
+
--EXPECTF--
20
+
Deprecated: deflate_init(): Passing an object for argument #2 $option to deflate_init() is deprecated, call get_object_vars() first instead in %s on line %d
20
21
TypeError: deflate_init(): Argument #2 ($options) the value for option "level" must be of type int, null given
Deprecated: inflate_init(): Passing an object for argument #2 $option to inflate_init() is deprecated, call get_object_vars() first instead in %s on line %d
21
+
TypeError: inflate_init(): Argument #2 ($options) the value for option "window" must be of type int, null given
0 commit comments