mirror of
https://github.com/php/php-src.git
synced 2024-11-27 20:03:40 +08:00
56f90492d6
For rationale, see https://github.com/php/php-src/pull/6787 Extensions migrated in this part: * bcmath * bz2 * calendar * com_dotnet * ctype Closes GH-6797.
20 lines
452 B
PHP
20 lines
452 B
PHP
--TEST--
|
|
Bug #72447: Type Confusion in php_bz2_filter_create()
|
|
--EXTENSIONS--
|
|
bz2
|
|
--FILE--
|
|
<?php
|
|
$input = "AAAAAAAA";
|
|
$param = array('blocks' => $input);
|
|
|
|
$fp = fopen('testfile', 'w');
|
|
stream_filter_append($fp, 'bzip2.compress', STREAM_FILTER_WRITE, $param);
|
|
fclose($fp);
|
|
?>
|
|
--CLEAN--
|
|
<?php
|
|
unlink('testfile');
|
|
?>
|
|
--EXPECTF--
|
|
Warning: stream_filter_append(): Invalid parameter given for number of blocks to allocate. (0) in %s%ebug72447.php on line %d
|