]> granicus.if.org Git - php/commit
[DOC]
authorGreg Beaver <cellog@php.net>
Thu, 7 Feb 2008 23:42:03 +0000 (23:42 +0000)
committerGreg Beaver <cellog@php.net>
Thu, 7 Feb 2008 23:42:03 +0000 (23:42 +0000)
commite67c584348beec3447e923a5ca8f1bfe78e94827
treeb1841e7a8b4def5f078ae169a04d654561fdcc5e
parent7329e71eb54ec6aeaeae82be54f35053d280e622
[DOC]
refactor the $rewrites parameter in Phar::webPhar.  Now it is a callback
that accepts the path requested.  This callback should return the actual filename
requested as a string, or false to deny access as HTTP 403.
Also fix incorrect munging of SCRIPT_NAME variable in mungServer
More importantly, Phar::webPhar now finds the filename hidden in:
http://localhost/myphar.phar/internal/file.php/extra/stuff
as 'internal/file.php' in phar 'myphar.phar' with REQUEST_URI '/internal/file.php/extra/stuff'
this will allow pharring up apps that use REQUEST_URI for front controller stuff.
26 files changed:
ext/phar/phar_object.c
ext/phar/tests/frontcontroller10.phpt
ext/phar/tests/frontcontroller21.phpt
ext/phar/tests/frontcontroller3.phar
ext/phar/tests/frontcontroller3.phar.inc
ext/phar/tests/frontcontroller4.phar
ext/phar/tests/frontcontroller4.phar.inc
ext/phar/tests/frontcontroller6.phpt
ext/phar/tests/frontcontroller8.phpt
ext/phar/tests/tar/frontcontroller10.phar.phpt
ext/phar/tests/tar/frontcontroller21.phar.phpt
ext/phar/tests/tar/frontcontroller3.phar.inc
ext/phar/tests/tar/frontcontroller3.phar.tar
ext/phar/tests/tar/frontcontroller4.phar.inc
ext/phar/tests/tar/frontcontroller4.phar.tar
ext/phar/tests/tar/frontcontroller6.phar.phpt
ext/phar/tests/tar/frontcontroller8.phar.phpt
ext/phar/tests/withphar_web.phpt
ext/phar/tests/zip/frontcontroller10.phar.phpt
ext/phar/tests/zip/frontcontroller21.phar.phpt
ext/phar/tests/zip/frontcontroller3.phar.inc
ext/phar/tests/zip/frontcontroller3.phar.zip
ext/phar/tests/zip/frontcontroller4.phar.inc
ext/phar/tests/zip/frontcontroller4.phar.zip
ext/phar/tests/zip/frontcontroller6.phar.phpt
ext/phar/tests/zip/frontcontroller8.phar.phpt