Return to frontcontroller12.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__) . '/frontcontroller12.phar'); 3: $a = new Phar(dirname(__FILE__) . '/frontcontroller12.phar'); 4: $a['index.php'] = '<?php 5: var_dump($_SERVER["PHP_SELF"]); 6: var_dump($_SERVER[b"SCRIPT_NAME"]); 7: var_dump($_SERVER[b"SCRIPT_FILENAME"]); 8: var_dump($_SERVER[b"REQUEST_URI"]); 9: var_dump($_SERVER[b"PHAR_PHP_SELF"]); 10: var_dump($_SERVER[b"PHAR_SCRIPT_NAME"]); 11: var_dump($_SERVER[b"PHAR_SCRIPT_FILENAME"]); 12: var_dump($_SERVER[b"PHAR_REQUEST_URI"]); 13: '; 14: $a->setStub('<?php 15: Phar::mungServer(array("PHP_SELF", "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: ?>