2016-06-19 05:10:22 +00:00
|
|
|
--TEST--
|
|
|
|
Bug #72447: Type Confusion in php_bz2_filter_create()
|
|
|
|
--SKIPIF--
|
|
|
|
<?php if (!extension_loaded("bz2")) print "skip"; ?>
|
|
|
|
--FILE--
|
|
|
|
<?php
|
|
|
|
$input = "AAAAAAAA";
|
|
|
|
$param = array('blocks' => $input);
|
|
|
|
|
|
|
|
$fp = fopen('testfile', 'w');
|
|
|
|
stream_filter_append($fp, 'bzip2.compress', STREAM_FILTER_WRITE, $param);
|
|
|
|
fclose($fp);
|
|
|
|
?>
|
2018-11-08 09:51:17 +00:00
|
|
|
--CLEAN--
|
|
|
|
<?php
|
|
|
|
unlink('testfile');
|
|
|
|
?>
|
2016-06-19 05:10:22 +00:00
|
|
|
--EXPECTF--
|
2016-06-22 09:41:05 +00:00
|
|
|
Warning: stream_filter_append(): Invalid parameter given for number of blocks to allocate. (0) in %s%ebug72447.php on line %d
|