mirror of
https://github.com/php/php-src.git
synced 2024-10-21 00:12:34 +00:00
21 lines
726 B
PHP
21 lines
726 B
PHP
--TEST--
|
|
Phar front controller mime type extension is not a string tar-based
|
|
--INI--
|
|
default_charset=
|
|
--SKIPIF--
|
|
<?php if (!extension_loaded("phar")) die("skip"); ?>
|
|
<?php die("skip"); ?>
|
|
--ENV--
|
|
SCRIPT_NAME=/frontcontroller11.phar.php
|
|
REQUEST_URI=/frontcontroller11.phar.php/a.php
|
|
PATH_INFO=/a.php
|
|
--FILE_EXTERNAL--
|
|
files/frontcontroller5.phar.tar
|
|
--EXPECTHEADERS--
|
|
Content-type: text/html
|
|
--EXPECTF--
|
|
Fatal error: Uncaught exception 'PharException' with message 'Key of MIME type overrides array must be a file extension, was "0"' in %sfrontcontroller11.phar.php:2
|
|
Stack trace:
|
|
#0 %sfrontcontroller11.phar.php(2): Phar::webPhar('whatever', 'index.php', '', Array)
|
|
#1 {main}
|
|
thrown in %sfrontcontroller11.phar.php on line 2
|