mirror of
https://github.com/php/php-src.git
synced 2024-10-19 23:44:13 +00:00
18 lines
719 B
Plaintext
18 lines
719 B
Plaintext
|
--TEST--
|
||
|
Phar front controller mime type not string/int tar-based
|
||
|
--SKIPIF--
|
||
|
<?php if (!extension_loaded("phar")) die("skip"); ?>
|
||
|
--ENV--
|
||
|
SCRIPT_NAME=/frontcontroller13.phar.php
|
||
|
REQUEST_URI=/frontcontroller13.phar.php/a.php
|
||
|
PATH_INFO=/a.php
|
||
|
--FILE_EXTERNAL--
|
||
|
files/frontcontroller7.phar.tar
|
||
|
--EXPECTHEADERS--
|
||
|
Content-type: text/html
|
||
|
--EXPECTF--
|
||
|
Fatal error: Uncaught exception 'PharException' with message 'Unknown mime type specifier used (not a string or int), only Phar::PHP, Phar::PHPS and a mime type string are allowed' in %sfrontcontroller13.phar.php:2
|
||
|
Stack trace:
|
||
|
#0 %sfrontcontroller13.phar.php(2): Phar::webPhar('whatever', 'index.php', '', Array)
|
||
|
#1 {main}
|
||
|
thrown in %sfrontcontroller13.phar.php on line 2
|