mirror of
https://github.com/php/php-src.git
synced 2024-10-01 06:46:08 +00:00
36efc2a907
major improvement of zip/tar-based phar stub execution, now __FILE__ says it is the phar, and not phar/.phar/stub.php, so that the same stub can be used for phar or tar/zip-based phars ridiculous speedup of rename() within a phar (something like 1000%) last of the tar-based phar fixes new tests for tar-based phars, fix existing tests to use new format of __FILE__
16 lines
663 B
PHP
16 lines
663 B
PHP
--TEST--
|
|
Phar front controller $_SERVER munging failure 2 tar-based
|
|
--SKIPIF--
|
|
<?php if (!extension_loaded("phar")) die("skip"); ?>
|
|
--ENV--
|
|
SCRIPT_NAME=/frontcontroller19.phar.php/
|
|
REQUEST_URI=/frontcontroller19.phar.php/
|
|
--FILE_EXTERNAL--
|
|
frontcontroller10.phar.tar
|
|
--EXPECTF--
|
|
Fatal error: Uncaught exception 'UnexpectedValueException' with message 'Too many values passed to Phar::mungServer(), expecting an array of any of these strings: PHP_SELF, REQUEST_URI, SCRIPT_FILENAME, SCRIPT_NAME' in %sfrontcontroller19.phar.php:2
|
|
Stack trace:
|
|
#0 %sfrontcontroller19.phar.php(2): Phar::mungServer(Array)
|
|
#1 {main}
|
|
thrown in %sfrontcontroller19.phar.php on line 2
|