Return to frontcontroller11.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__) . '/frontcontroller11.phar'); 3: $a = new Phar(dirname(__FILE__) . '/frontcontroller11.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(array(), "SCRIPT_NAME", "SCRIPT_FILENAME", "REQUEST_URI")); 16: Phar::webPhar(); 17: echo "oops did not run\n"; 18: var_dump($_ENV, $_SERVER); 19: __HALT_COMPILER();'); 20: ?>