Download src/php/php-src/ext/bz2/tests/bug72613.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 379 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/bz2/tests/bug72613.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/bz2/tests/bug72613.phpt
-
curl -L -o bug72613.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/bz2/tests/bug72613.phpt
379 Bytes
| --TEST-- | |
| Bug #72613 (Inadequate error handling in bzread()) | |
| --EXTENSIONS-- | |
| bz2 | |
| --FILE-- | |
| <?php | |
| $fp = bzopen(__DIR__.'/72613.bz2', 'r'); | |
| if ($fp === FALSE) { | |
| exit("ERROR: bzopen()"); | |
| } | |
| $data = ""; | |
| while (!feof($fp)) { | |
| $res = bzread($fp); | |
| if ($res === FALSE) { | |
| exit("ERROR: bzread()"); | |
| } | |
| $data .= $res; | |
| } | |
| bzclose($fp); | |
| ?> | |
| DONE | |
| --EXPECT-- | |
| ERROR: bzread() | |