From 42b2d7fec54ec7ea0bc352c502674d6192c8a6fa Mon Sep 17 00:00:00 2001 From: Stanislav Malyshev Date: Sat, 18 Jun 2016 22:10:22 -0700 Subject: Fix bug #72447: Type Confusion in php_bz2_filter_create() --- ext/bz2/tests/bug72447.phpt | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 ext/bz2/tests/bug72447.phpt (limited to 'ext/bz2/tests') diff --git a/ext/bz2/tests/bug72447.phpt b/ext/bz2/tests/bug72447.phpt new file mode 100644 index 0000000000..0df4cb177b --- /dev/null +++ b/ext/bz2/tests/bug72447.phpt @@ -0,0 +1,15 @@ +--TEST-- +Bug #72447: Type Confusion in php_bz2_filter_create() +--SKIPIF-- + +--FILE-- + $input); + +$fp = fopen('testfile', 'w'); +stream_filter_append($fp, 'bzip2.compress', STREAM_FILTER_WRITE, $param); +fclose($fp); +?> +--EXPECTF-- +Warning: stream_filter_append(): Invalid parameter given for number of blocks to allocate. (0) in %s/bug72447.php on line %d -- cgit v1.2.1