Download src/php/php-src/ext/phar/tests/013.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 663 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/phar/tests/013.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/phar/tests/013.phpt
-
curl -L -o 013.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/phar/tests/013.phpt
663 Bytes
| --TEST-- | |
| Phar::mapPhar filesize mismatch | |
| --EXTENSIONS-- | |
| phar | |
| --INI-- | |
| phar.require_hash=0 | |
| --FILE-- | |
| $fname = __DIR__ . '/' . basename(__FILE__, '.php') . '.phar.php'; | |
| $pname = 'phar://' . $fname; | |
| $file = "<?php __HALT_COMPILER(); ?>"; | |
| // filesize should be 1, and is 2 | |
| $files = array(); | |
| $files['a'] = array('cont'=>'a', 'ulen'=>2, 'clen'=>2); | |
| include 'files/phar_test.inc'; | |
| echo file_get_contents($pname.'/a'); | |
| --CLEAN-- | |
| unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.phar.php'); | |
| --EXPECTF-- | |
| Warning: file_get_contents(phar://%s/a): Failed to open stream: phar error: internal corruption of phar "%s" (%s file "a") in %s on line %d | |