summaryrefslogtreecommitdiff
path: root/Zend/tests/closure_038.phpt
diff options
context:
space:
mode:
authorNikita Popov <nikic@php.net>2015-05-17 18:35:18 +0200
committerNikita Popov <nikic@php.net>2015-05-17 18:47:06 +0200
commit3ae995f03c8f60c4a4c9718262545cf5a6a08da3 (patch)
tree09057b4ca7235be04e6ee763c11f46aba738e41b /Zend/tests/closure_038.phpt
parent0df2f470fa194b28f1eb9e5788b8cf4c3f03f5f7 (diff)
downloadphp-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 'Zend/tests/closure_038.phpt')
-rw-r--r--Zend/tests/closure_038.phpt4
1 files changed, 2 insertions, 2 deletions
diff --git a/Zend/tests/closure_038.phpt b/Zend/tests/closure_038.phpt
index 61fcc1cb94..f3bcd831a9 100644
--- a/Zend/tests/closure_038.phpt
+++ b/Zend/tests/closure_038.phpt
@@ -55,12 +55,12 @@ Testing with scope as string
int(23)
int(24)
-Fatal error: Uncaught exception 'EngineException' with message 'Cannot access private property B::$x' in %s:%d
+Fatal error: Uncaught EngineException: Cannot access private property B::$x in %s:%d
Stack trace:
#0 %s(%d): Closure->{closure}()
#1 {main}
-Next exception 'EngineException' with message 'Cannot access private property B::$x' in %s:%d
+Next EngineException: Cannot access private property B::$x in %s:%d
Stack trace:
#0 %s(%d): Closure->{closure}()
#1 {main}