mirror of
https://github.com/php/php-src.git
synced 2024-09-28 21:36:12 +00:00
3ae995f03c
This implements a reduced variant of #1226 with just the following change: -Fatal error: Uncaught exception 'EngineException' with message 'Call to private method foo::bar() from context ''' in %s:%d +Fatal error: Uncaught EngineException: Call to private method foo::bar() from context '' in %s:%d The '' wrapper around messages is very weird if the exception message itself contains ''. Futhermore having the message wrapped in '' doesn't work for the "and defined" suffix of TypeExceptions.
20 lines
674 B
PHP
20 lines
674 B
PHP
--TEST--
|
|
Phar front controller mime type unknown int
|
|
--INI--
|
|
default_charset=UTF-8
|
|
--SKIPIF--
|
|
<?php if (!extension_loaded("phar")) die("skip"); ?>
|
|
--ENV--
|
|
SCRIPT_NAME=/frontcontroller12.php
|
|
REQUEST_URI=/frontcontroller12.php/a.php
|
|
PATH_INFO=/a.php
|
|
--FILE_EXTERNAL--
|
|
files/frontcontroller6.phar
|
|
--EXPECTHEADERS--
|
|
Content-type: text/html; charset=UTF-8
|
|
--EXPECTF--
|
|
Fatal error: Uncaught PharException: Unknown mime type specifier used, only Phar::PHP, Phar::PHPS and a mime type string are allowed in %sfrontcontroller12.php:2
|
|
Stack trace:
|
|
#0 %sfrontcontroller12.php(2): Phar::webPhar('whatever', 'index.php', '', Array)
|
|
#1 {main}
|
|
thrown in %sfrontcontroller12.php on line 2
|