frontcontroller14.phar.inc 522 B

12345678910111213141516171819
  1. <?php
  2. @unlink(dirname(__FILE__) . '/frontcontroller14.phar');
  3. $a = new Phar(dirname(__FILE__) . '/frontcontroller14.phar');
  4. $a['html/index.php'] = '<?php
  5. var_dump($_SERVER["PATH_INFO"]);
  6. var_dump($_SERVER["PATH_TRANSLATED"]);
  7. ';
  8. $a->setStub('<?php
  9. function s($a)
  10. {
  11. return "/html/index.php";
  12. }
  13. Phar::interceptFileFuncs();
  14. Phar::mungServer(array("PHP_SELF", "REQUEST_URI"));
  15. Phar::webPhar("whatever", "/html/index.php", null, array(), "s");
  16. echo "oops did not run\n";
  17. var_dump($_ENV, $_SERVER);
  18. __HALT_COMPILER();');
  19. ?>