Download src/php/php-src/ext/phar/tests/files/frontcontroller18.phar.inc from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 405 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/phar/tests/files/frontcontroller18.phar.inc
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/phar/tests/files/frontcontroller18.phar.inc
-
curl -L -o frontcontroller18.phar.inc https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/phar/tests/files/frontcontroller18.phar.inc
405 Bytes
| @unlink(dirname(__FILE__) . '/frontcontroller18.phar'); | |
| $a = new Phar(dirname(__FILE__) . '/frontcontroller18.phar'); | |
| $a['index.php'] = '<?php | |
| echo "hi"; | |
| '; | |
| $a->setStub('<?php | |
| function s($a) | |
| { | |
| } | |
| try { | |
| Phar::webPhar("test.phar", "/index.php", null, array(), "s"); | |
| } catch (Exception $e) { | |
| die($e->getMessage() . "\n"); | |
| } | |
| echo "oops did not run\n"; | |
| var_dump($_ENV, $_SERVER); | |
| __HALT_COMPILER();'); | |