Download src/php/php-src/ext/bz2/tests/005.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 1.14 kB
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/bz2/tests/005.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/bz2/tests/005.phpt
-
curl -L -o 005.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/bz2/tests/005.phpt
1.14 kB
| --TEST-- | |
| bzcompress()/bzdecompress() tests | |
| --EXTENSIONS-- | |
| bz2 | |
| --FILE-- | |
| $string = "Life it seems, will fade away | |
| Drifting further everyday | |
| Getting lost within myself | |
| Nothing matters no one else"; | |
| var_dump(bzcompress(1,1,1)); | |
| $data = bzcompress($string); | |
| $data2 = bzcompress($string, 1, 10); | |
| $data3 = $data2; | |
| $data3[3] = 0; | |
| var_dump(bzdecompress(1,1)); | |
| var_dump(bzdecompress($data3)); | |
| var_dump(bzdecompress($data3,1)); | |
| var_dump(bzdecompress($data, 0)); | |
| var_dump(bzdecompress($data, 1)); | |
| var_dump(bzdecompress($data)); | |
| var_dump(bzdecompress($data2)); | |
| echo "Done\n"; | |
| --EXPECTF-- | |
| string(%d) "BZ%a" | |
| int(-5) | |
| int(-5) | |
| int(-5) | |
| string(110) "Life it seems, will fade away | |
| Drifting further everyday | |
| Getting lost within myself | |
| Nothing matters no one else" | |
| string(110) "Life it seems, will fade away | |
| Drifting further everyday | |
| Getting lost within myself | |
| Nothing matters no one else" | |
| string(110) "Life it seems, will fade away | |
| Drifting further everyday | |
| Getting lost within myself | |
| Nothing matters no one else" | |
| string(110) "Life it seems, will fade away | |
| Drifting further everyday | |
| Getting lost within myself | |
| Nothing matters no one else" | |
| Done | |