mirror of
https://github.com/php/php-src.git
synced 2024-10-04 00:06:16 +00:00
b93b48663d
fix a whole bunch of zip-related bugs tar tests need some naming add phar information to error messages, fix existing tests to reflect this
17 lines
639 B
PHP
17 lines
639 B
PHP
--TEST--
|
|
Phar front controller rewrite array invalid zip-based
|
|
--SKIPIF--
|
|
<?php if (!extension_loaded("phar")) die("skip"); ?>
|
|
--ENV--
|
|
SCRIPT_NAME=/frontcontroller10.phar.php/hi
|
|
REQUEST_URI=/frontcontroller10.phar.php/hi
|
|
--FILE_EXTERNAL--
|
|
frontcontroller4.phar.zip
|
|
--EXPECTHEADERS--
|
|
Content-type: text/html
|
|
--EXPECTF--
|
|
Fatal error: Uncaught exception 'UnexpectedValueException' with message 'phar rewrite value for "/hi" was not a string' in %sfrontcontroller10.phar.php:2
|
|
Stack trace:
|
|
#0 %sfrontcontroller10.phar.php(2): Phar::webPhar('whatever', 'index.php', '', Array, Array)
|
|
#1 {main}
|
|
thrown in %sfrontcontroller10.phar.php on line 2
|