Browse Source
in preparation for a performance optimization that involves
in preparation for a performance optimization that involves
eliminating phar's interception of zend_compile in favor of a new to-be-added hook in PHP 5.3+, allow "include 'phar:///path/to/my.phar';" to work as equivalent to php /path/to/my.phar this slight change in scripting still allows inclusion and execution of phar stub, but removes the need to check and modify path in zend_compile, which allows us to play much nicer with external tools like debuggers/opcode cachesPECL
7 changed files with 81 additions and 13 deletions
-
14ext/phar/cgidebug
-
2ext/phar/phar.c
-
BINext/phar/phar.phar
-
57ext/phar/stream.c
-
7ext/phar/tests/017.phpt
-
7ext/phar/tests/tar/tar_bz2.phpt
-
7ext/phar/tests/zip/phar_magic.phpt
@ -1,11 +1,11 @@ |
|||
#!/bin/sh |
|||
export SCRIPT_NAME=/frontcontroller9.php |
|||
export PATH_INFO=/hi |
|||
export SCRIPT_FILENAME=/home/cellog/workspace/php5/ext/phar/tests/cache_list/frontcontroller9.php |
|||
export PATH_TRANSLATED=/home/cellog/workspace/php5/ext/phar/tests/cache_list/frontcontroller9.php |
|||
export SCRIPT_NAME=/front.phar.php |
|||
export PATH_INFO=/index.php |
|||
export SCRIPT_FILENAME=/home/cellog/workspace/php5/ext/phar/tests/front.phar.php |
|||
export PATH_TRANSLATED=/home/cellog/workspace/php5/ext/phar/tests/front.phar.php |
|||
export REDIRECT_STATUS=1 |
|||
export REQUEST_METHOD=GET |
|||
export REQUEST_URI=/frontcontroller9.php/hi |
|||
cd /home/cellog/workspace/php5/ext/phar/tests/cache_list |
|||
ddd ../../../../sapi/cgi/php-cgi & |
|||
export REQUEST_URI=/front.phar.php/index.php |
|||
cd /home/cellog/workspace/php5 |
|||
ddd sapi/cgi/php-cgi & |
|||
cd /home/cellog/workspace/php5/ext/phar |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue