Download src/php/php-src/ext/bz2/tests/with_files.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 356 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/bz2/tests/with_files.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/bz2/tests/with_files.phpt
-
curl -L -o with_files.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/bz2/tests/with_files.phpt
356 Bytes
| --TEST-- | |
| BZ2 with files | |
| --EXTENSIONS-- | |
| bz2 | |
| --FILE-- | |
| error_reporting(E_ALL); | |
| $filename = "with_files.bz2"; | |
| $str = "This is a test string.\n"; | |
| $bz = bzopen($filename, "w"); | |
| bzwrite($bz, $str); | |
| bzclose($bz); | |
| $bz = bzopen($filename, "r"); | |
| print bzread($bz, 10); | |
| print bzread($bz); | |
| bzclose($bz); | |
| unlink($filename); | |
| --EXPECT-- | |
| This is a test string. | |