1<?php
2@unlink(dirname(__FILE__) . '/frontcontroller11.phar.zip');
3$a = new Phar(dirname(__FILE__) . '/frontcontroller11.phar.zip');
4$a['index.php'] = '<?php
5var_dump($_SERVER["PHP_SELF"]);
6var_dump($_SERVER["SCRIPT_NAME"]);
7var_dump($_SERVER["SCRIPT_FILENAME"]);
8var_dump($_SERVER["REQUEST_URI"]);
9var_dump($_SERVER["PHAR_PHP_SELF"]);
10var_dump($_SERVER["PHAR_SCRIPT_NAME"]);
11var_dump($_SERVER["PHAR_SCRIPT_FILENAME"]);
12var_dump($_SERVER["PHAR_REQUEST_URI"]);
13';
14$a->setStub('<?php
15Phar::mungServer(array(array(), "SCRIPT_NAME", "SCRIPT_FILENAME", "REQUEST_URI"));
16Phar::webPhar();
17echo "oops did not run\n";
18var_dump($_ENV, $_SERVER);
19__HALT_COMPILER();');
20?>
21