Download src/php/php-src/ext/bz2/tests/with_strings.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 307 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/bz2/tests/with_strings.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/bz2/tests/with_strings.phpt
-
curl -L -o with_strings.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/bz2/tests/with_strings.phpt
307 Bytes
| --TEST-- | |
| BZ2 with strings | |
| --EXTENSIONS-- | |
| bz2 | |
| --FILE-- | |
| # This FAILS | |
| $blaat = <<<HEREDOC | |
| This is some random data | |
| HEREDOC; | |
| # This Works: (so, is heredoc related) | |
| #$blaat= 'This is some random data'; | |
| $blaat2 = bzdecompress(bzcompress($blaat)); | |
| var_dump($blaat === $blaat2); | |
| --EXPECT-- | |
| bool(true) | |