frontcontroller10.phar.inc 665 B

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