Download src/php/php-src/ext/bz2/tests/bug72447.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 451 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/bz2/tests/bug72447.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/bz2/tests/bug72447.phpt
-
curl -L -o bug72447.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/bz2/tests/bug72447.phpt
451 Bytes
| --TEST-- | |
| Bug #72447: Type Confusion in php_bz2_filter_create() | |
| --EXTENSIONS-- | |
| bz2 | |
| --FILE-- | |
| $input = "AAAAAAAA"; | |
| $param = array('blocks' => $input); | |
| $fp = fopen('testfile', 'w'); | |
| stream_filter_append($fp, 'bzip2.compress', STREAM_FILTER_WRITE, $param); | |
| fclose($fp); | |
| --CLEAN-- | |
| unlink('testfile'); | |
| --EXPECTF-- | |
| Warning: stream_filter_append(): Invalid parameter given for number of blocks to allocate (0) in %s%ebug72447.php on line %d | |