diff options
author | Nikita Popov <nikic@php.net> | 2015-05-17 18:35:18 +0200 |
---|---|---|
committer | Nikita Popov <nikic@php.net> | 2015-05-17 18:47:06 +0200 |
commit | 3ae995f03c8f60c4a4c9718262545cf5a6a08da3 (patch) | |
tree | 09057b4ca7235be04e6ee763c11f46aba738e41b /ext/phar/tests/zip/frontcontroller19.phar.phpt | |
parent | 0df2f470fa194b28f1eb9e5788b8cf4c3f03f5f7 (diff) | |
download | php-git-3ae995f03c8f60c4a4c9718262545cf5a6a08da3.tar.gz |
Tweak uncaught exception message display
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.
Diffstat (limited to 'ext/phar/tests/zip/frontcontroller19.phar.phpt')
-rw-r--r-- | ext/phar/tests/zip/frontcontroller19.phar.phpt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/phar/tests/zip/frontcontroller19.phar.phpt b/ext/phar/tests/zip/frontcontroller19.phar.phpt index 0eb87bfa60..db66ea48b0 100644 --- a/ext/phar/tests/zip/frontcontroller19.phar.phpt +++ b/ext/phar/tests/zip/frontcontroller19.phar.phpt @@ -10,7 +10,7 @@ PATH_INFO=/ --FILE_EXTERNAL-- files/frontcontroller10.phar.zip --EXPECTF-- -Fatal error: Uncaught exception 'PharException' with message 'Too many values passed to Phar::mungServer(), expecting an array of any of these strings: PHP_SELF, REQUEST_URI, SCRIPT_FILENAME, SCRIPT_NAME' in %sfrontcontroller19.phar.php:2 +Fatal error: Uncaught PharException: Too many values passed to Phar::mungServer(), expecting an array of any of these strings: PHP_SELF, REQUEST_URI, SCRIPT_FILENAME, SCRIPT_NAME in %sfrontcontroller19.phar.php:2 Stack trace: #0 %sfrontcontroller19.phar.php(2): Phar::mungServer(Array) #1 {main} |