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