Download src/php/php-src/ext/phar/tests/024.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 656 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/phar/tests/024.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/phar/tests/024.phpt
-
curl -L -o 024.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/phar/tests/024.phpt
656 Bytes
| --TEST-- | |
| Phar: phar:// include | |
| --EXTENSIONS-- | |
| phar | |
| --INI-- | |
| phar.require_hash=0 | |
| --FILE-- | |
| $fname = __DIR__ . '/' . basename(__FILE__, '.php') . '.phar.php'; | |
| $pname = 'phar://' . $fname; | |
| $file = "<?php __HALT_COMPILER(); ?>"; | |
| $files = array(); | |
| $files['a.php'] = '<?php echo "This is a\n"; ?>'; | |
| $files['b.php'] = '<?php echo "This is b\n"; ?>'; | |
| $files['b/c.php'] = '<?php echo "This is b/c\n"; ?>'; | |
| include 'files/phar_test.inc'; | |
| include $pname . '/a.php'; | |
| include $pname . '/b.php'; | |
| include $pname . '/b/c.php'; | |
| --CLEAN-- | |
| unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.phar.php'); | |
| --EXPECT-- | |
| This is a | |
| This is b | |
| This is b/c | |