Annotation of embedaddon/php/ext/phar/tests/zip/files/frontcontroller10.phar.inc, revision 1.1
1.1 ! misho 1: <?php
! 2: @unlink(dirname(__FILE__) . '/frontcontroller10.phar.zip');
! 3: $a = new Phar(dirname(__FILE__) . '/frontcontroller10.phar.zip');
! 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("PHP_SELF", "SCRIPT_NAME", "SCRIPT_FILENAME", "REQUEST_URI", "OOPSIE"));
! 16: Phar::webPhar();
! 17: echo "oops did not run\n";
! 18: var_dump($_ENV, $_SERVER);
! 19: __HALT_COMPILER();');
! 20: ?>
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>