Download src/php/php-src/ext/phar/tests/zip/files/frontcontroller4.phar.inc from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 482 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/phar/tests/zip/files/frontcontroller4.phar.inc
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/phar/tests/zip/files/frontcontroller4.phar.inc
-
curl -L -o frontcontroller4.phar.inc https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/phar/tests/zip/files/frontcontroller4.phar.inc
482 Bytes
| @unlink(dirname(__FILE__) . '/frontcontroller4.phar.zip'); | |
| $a = new Phar(dirname(__FILE__) . '/frontcontroller4.phar.zip'); | |
| $a['a.php'] = 'hio'; | |
| $a['a.jpg'] = 'hio'; | |
| $a['a.phps'] = '<?php function hio(){}'; | |
| $a->setStub('<?php | |
| function s($a) | |
| { | |
| static $b = array("/hi" => false); | |
| if (isset($b[$a])) return $b[$a]; | |
| return $a; | |
| } | |
| Phar::webPhar("whatever", "index.php", null, array(), "s"); | |
| echo "oops did not run\n"; | |
| var_dump($_ENV, $_SERVER); | |
| __HALT_COMPILER();'); | |