Download src/php/php-src/ext/phar/tests/015b.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 661 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/phar/tests/015b.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/phar/tests/015b.phpt
-
curl -L -o 015b.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/phar/tests/015b.phpt
661 Bytes
| --TEST-- | |
| Phar::mapPhar valid file (bzip2) | |
| --EXTENSIONS-- | |
| phar | |
| bz2 | |
| --INI-- | |
| phar.require_hash=0 | |
| --FILE-- | |
| $fname = __DIR__ . '/' . basename(__FILE__, '.php') . '.phar.php'; | |
| $pname = 'phar://' . $fname; | |
| $file = "<?php __HALT_COMPILER(); ?>"; | |
| $files = array(); | |
| $files['a'] = array('cont'=>'Hello World', 'comp'=>pack('H*', '425a6834314159265359065c89da0000009780400000400080060490002000310c082031a916c41d41e2ee48a70a1200cb913b40'),'flags'=>0x00002000); | |
| include 'files/phar_test.inc'; | |
| var_dump(file_get_contents($pname . '/a')); | |
| --CLEAN-- | |
| unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.phar.php'); | |
| --EXPECT-- | |
| string(11) "Hello World" | |