Return to frontcontroller14.phar.inc CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / ext / phar / tests / files |
1.1 misho 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[b"PATH_INFO"]); 6: var_dump($_SERVER[b"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: ?>