Download src/php/php-src/ext/phar/tests/011.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 789 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/phar/tests/011.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/phar/tests/011.phpt
-
curl -L -o 011.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/phar/tests/011.phpt
789 Bytes
| --TEST-- | |
| Phar::mapPhar filesize too small in manifest | |
| --EXTENSIONS-- | |
| phar | |
| --INI-- | |
| phar.require_hash=0 | |
| --FILE-- | |
| $fname = __DIR__ . '/' . basename(__FILE__, '.php') . '.phar.php'; | |
| $pname = 'phar://' . $fname; | |
| $file = "<?php | |
| Phar::mapPhar('hio'); | |
| __HALT_COMPILER(); ?>"; | |
| // compressed file length does not match incompressed length for an uncompressed file | |
| $files = array(); | |
| $files['a'] = array('cont'=>'a','ulen'=>1,'clen'=>2); | |
| include 'files/phar_test.inc'; | |
| try { | |
| include $fname; | |
| echo file_get_contents('phar://hio/a'); | |
| } catch (Exception $e) { | |
| echo $e->getMessage(); | |
| } | |
| --CLEAN-- | |
| unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.phar.php'); | |
| --EXPECTF-- | |
| internal corruption of phar "%s" (compressed and uncompressed size does not match for uncompressed entry) | |