summaryrefslogtreecommitdiff
path: root/Zend/tests/bug44141.phpt
diff options
context:
space:
mode:
authorNikita Popov <nikic@php.net>2015-05-15 21:04:07 +0200
committerNikita Popov <nikic@php.net>2015-05-15 23:40:32 +0200
commitc9f27ee4227268bc74fc54e0e06102317e614804 (patch)
tree35680688ecebfd7bc1321f21a6919133dffa666f /Zend/tests/bug44141.phpt
parent34e6fbbfed6bd63e7f71ca61ff73ca67d0c12b7b (diff)
downloadphp-git-c9f27ee4227268bc74fc54e0e06102317e614804.tar.gz
Display EngineExceptions like ordinary exceptions
TypeException stays as-is for now because it uses messages that are incompatible with the way exception messages are displayed. closure_038.phpt and a few others now show that we're generating too many exceptions for compound operations on undefined properties -- this needs to be fixed in a followup.
Diffstat (limited to 'Zend/tests/bug44141.phpt')
-rw-r--r--Zend/tests/bug44141.phpt6
1 files changed, 5 insertions, 1 deletions
diff --git a/Zend/tests/bug44141.phpt b/Zend/tests/bug44141.phpt
index 1a9ee892b6..aa0ae7ed4b 100644
--- a/Zend/tests/bug44141.phpt
+++ b/Zend/tests/bug44141.phpt
@@ -22,4 +22,8 @@ class Y extends X
$y = Y::cheat(5);
echo $y->x, PHP_EOL;
--EXPECTF--
-Fatal error: Call to private X::__construct() from context 'Y' in %sbug44141.php on line 15
+Fatal error: Uncaught exception 'EngineException' with message 'Call to private X::__construct() from context 'Y'' in %sbug44141.php:15
+Stack trace:
+#0 %s(%d): Y::cheat(5)
+#1 {main}
+ thrown in %sbug44141.php on line 15