mirror of
https://github.com/php/php-src.git
synced 2024-09-29 13:56:09 +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.
17 lines
605 B
PHP
17 lines
605 B
PHP
--TEST--
|
|
Phar front controller $_SERVER munging failure 3
|
|
--SKIPIF--
|
|
<?php if (!extension_loaded("phar")) die("skip"); ?>
|
|
--ENV--
|
|
SCRIPT_NAME=/frontcontroller20.php
|
|
REQUEST_URI=/frontcontroller20.php/
|
|
PATH_INFO=/
|
|
--FILE_EXTERNAL--
|
|
files/frontcontroller11.phar
|
|
--EXPECTF--
|
|
Fatal error: Uncaught PharException: Non-string value passed to Phar::mungServer(), expecting an array of any of these strings: PHP_SELF, REQUEST_URI, SCRIPT_FILENAME, SCRIPT_NAME in %sfrontcontroller20.php:2
|
|
Stack trace:
|
|
#0 %sfrontcontroller20.php(2): Phar::mungServer(Array)
|
|
#1 {main}
|
|
thrown in %sfrontcontroller20.php on line 2
|