frontcontroller3.phar.inc 486 B

123456789101112131415161718
  1. <?php
  2. @unlink(dirname(__FILE__) . '/frontcontroller3.phar.tar');
  3. $a = new Phar(dirname(__FILE__) . '/frontcontroller3.phar.tar');
  4. $a['a.php'] = 'hio';
  5. $a['a.jpg'] = 'hio';
  6. $a['a.phps'] = '<?php function hio(){}';
  7. $a->setStub('<?php
  8. function s($a)
  9. {
  10. static $b = array("/hi" => "a.phps");
  11. if (isset($b[$a])) return $b[$a];
  12. return $a;
  13. }
  14. Phar::webPhar("whatever", "/index.php", null, array(), "s");
  15. echo "oops did not run\n";
  16. var_dump($_ENV, $_SERVER);
  17. __HALT_COMPILER();');
  18. ?>