diff options
author | Nikita Popov <nikic@php.net> | 2015-05-15 21:04:07 +0200 |
---|---|---|
committer | Nikita Popov <nikic@php.net> | 2015-05-15 23:40:32 +0200 |
commit | c9f27ee4227268bc74fc54e0e06102317e614804 (patch) | |
tree | 35680688ecebfd7bc1321f21a6919133dffa666f /Zend/tests | |
parent | 34e6fbbfed6bd63e7f71ca61ff73ca67d0c12b7b (diff) | |
download | php-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')
145 files changed, 656 insertions, 145 deletions
diff --git a/Zend/tests/028.phpt b/Zend/tests/028.phpt index 2c58a87b32..810c091a87 100644 --- a/Zend/tests/028.phpt +++ b/Zend/tests/028.phpt @@ -20,4 +20,7 @@ bool(true) Notice: Undefined offset: 2 in %s on line %d -Fatal error: Function name must be a string in %s on line %d +Fatal error: Uncaught exception 'EngineException' with message 'Function name must be a string' in %s:%d +Stack trace: +#0 {main} + thrown in %s on line %d diff --git a/Zend/tests/037.phpt b/Zend/tests/037.phpt index d7057b4844..bda491d7e6 100644 --- a/Zend/tests/037.phpt +++ b/Zend/tests/037.phpt @@ -16,4 +16,7 @@ var_dump($x::$x); --EXPECTF-- int(1) -Fatal error: Access to undeclared static property: Closure::$x in %s on line %d +Fatal error: Uncaught exception 'EngineException' with message 'Access to undeclared static property: Closure::$x' in %s:%d +Stack trace: +#0 {main} + thrown in %s on line %d diff --git a/Zend/tests/access_modifiers_010.phpt b/Zend/tests/access_modifiers_010.phpt index 637ea36ce9..5fd65e5bef 100644 --- a/Zend/tests/access_modifiers_010.phpt +++ b/Zend/tests/access_modifiers_010.phpt @@ -28,4 +28,9 @@ new c; ?> --EXPECTF-- -Fatal error: Call to private method d::test2() from context 'a' in %s on line %d +Fatal error: Uncaught exception 'EngineException' with message 'Call to private method d::test2() from context 'a'' in %s:%d +Stack trace: +#0 %s(%d): a->test() +#1 %s(%d): c->__construct() +#2 {main} + thrown in %s on line %d diff --git a/Zend/tests/add_002.phpt b/Zend/tests/add_002.phpt index ca3b3eb6af..a242f7543e 100644 --- a/Zend/tests/add_002.phpt +++ b/Zend/tests/add_002.phpt @@ -26,4 +26,7 @@ Exception: Unsupported operand types Notice: Object of class stdClass could not be converted to int in %s on line %d -Fatal error: Unsupported operand types in %s on line %d +Fatal error: Uncaught exception 'EngineException' with message 'Unsupported operand types' in %s:%d +Stack trace: +#0 {main} + thrown in %s on line %d diff --git a/Zend/tests/add_003.phpt b/Zend/tests/add_003.phpt index f0c9314b2d..4023e24c2a 100644 --- a/Zend/tests/add_003.phpt +++ b/Zend/tests/add_003.phpt @@ -26,4 +26,7 @@ Exception: Unsupported operand types Notice: Object of class stdClass could not be converted to int in %s on line %d -Fatal error: Unsupported operand types in %s on line %d +Fatal error: Uncaught exception 'EngineException' with message 'Unsupported operand types' in %s:%d +Stack trace: +#0 {main} + thrown in %s on line %d diff --git a/Zend/tests/add_004.phpt b/Zend/tests/add_004.phpt index 5629ed2ea4..b0a10f82f3 100644 --- a/Zend/tests/add_004.phpt +++ b/Zend/tests/add_004.phpt @@ -19,4 +19,7 @@ echo "Done\n"; --EXPECTF-- Exception: Unsupported operand types -Fatal error: Unsupported operand types in %s on line %d +Fatal error: Uncaught exception 'EngineException' with message 'Unsupported operand types' in %s:%d +Stack trace: +#0 {main} + thrown in %s on line %d diff --git a/Zend/tests/add_007.phpt b/Zend/tests/add_007.phpt index b7d44a8683..455f664dfa 100644 --- a/Zend/tests/add_007.phpt +++ b/Zend/tests/add_007.phpt @@ -21,4 +21,7 @@ echo "Done\n"; --EXPECTF-- Exception: Unsupported operand types -Fatal error: Unsupported operand types in %s on line %d +Fatal error: Uncaught exception 'EngineException' with message 'Unsupported operand types' in %s:%d +Stack trace: +#0 {main} + thrown in %s on line %d diff --git a/Zend/tests/bug24773.phpt b/Zend/tests/bug24773.phpt index e8c2aa8395..ea08f84c26 100644 --- a/Zend/tests/bug24773.phpt +++ b/Zend/tests/bug24773.phpt @@ -6,4 +6,7 @@ Bug #24773 (unset() of integers treated as arrays causes a crash) unset($array["lvl1"]["lvl2"]["b"]); ?> --EXPECTF-- -Fatal error: Cannot use string offset as an array in %s on line %d +Fatal error: Uncaught exception 'EngineException' with message 'Cannot use string offset as an array' in %s:%d +Stack trace: +#0 {main} + thrown in %s on line %d diff --git a/Zend/tests/bug29015.phpt b/Zend/tests/bug29015.phpt index 6c18ab8a09..f5a4e0ac41 100644 --- a/Zend/tests/bug29015.phpt +++ b/Zend/tests/bug29015.phpt @@ -8,4 +8,7 @@ $a->$x = "string('')"; var_dump($a); ?> --EXPECTF-- -Fatal error: Cannot access empty property in %sbug29015.php on line 4 +Fatal error: Uncaught exception 'EngineException' with message 'Cannot access empty property' in %sbug29015.php:4 +Stack trace: +#0 {main} + thrown in %sbug29015.php on line 4 diff --git a/Zend/tests/bug29674.phpt b/Zend/tests/bug29674.phpt index 30c23faa0e..f94c2290b4 100644 --- a/Zend/tests/bug29674.phpt +++ b/Zend/tests/bug29674.phpt @@ -38,4 +38,8 @@ NULL ===CHILD=== string(4) "Base" -Fatal error: Cannot access private property ChildClass::$private_child in %sbug29674.php on line %d +Fatal error: Uncaught exception 'EngineException' with message 'Cannot access private property ChildClass::$private_child' in %sbug29674.php:%d +Stack trace: +#0 %s(%d): BaseClass->printVars() +#1 {main} + thrown in %sbug29674.php on line %d diff --git a/Zend/tests/bug31102.phpt b/Zend/tests/bug31102.phpt index b7911bea51..0dbfd5a34f 100644 --- a/Zend/tests/bug31102.phpt +++ b/Zend/tests/bug31102.phpt @@ -45,4 +45,8 @@ __autoload(Test2,2) Caught: __autoload __autoload(Test3,3) -Fatal error: Class 'Test3' not found in %sbug31102.php(%d) : eval()'d code on line 1 +Fatal error: Uncaught exception 'EngineException' with message 'Class 'Test3' not found' in %sbug31102.php(%d) : eval()'d code:1 +Stack trace: +#0 %s(%d): eval() +#1 {main} + thrown in %sbug31102.php(%d) : eval()'d code on line 1 diff --git a/Zend/tests/bug32660.phpt b/Zend/tests/bug32660.phpt index 3a307189a4..d99e2f8e14 100644 --- a/Zend/tests/bug32660.phpt +++ b/Zend/tests/bug32660.phpt @@ -36,4 +36,7 @@ A Object Notice: Indirect modification of overloaded property A::$whatever has no effect in %sbug32660.php on line 23 -Fatal error: Cannot assign by reference to overloaded object in %sbug32660.php on line 23 +Fatal error: Uncaught exception 'EngineException' with message 'Cannot assign by reference to overloaded object' in %sbug32660.php:23 +Stack trace: +#0 {main} + thrown in %sbug32660.php on line 23 diff --git a/Zend/tests/bug33318.phpt b/Zend/tests/bug33318.phpt index dc1afbb153..4abb90866f 100644 --- a/Zend/tests/bug33318.phpt +++ b/Zend/tests/bug33318.phpt @@ -5,4 +5,7 @@ Bug #33318 (throw 1; results in Invalid opcode 108/1/8) throw 1; ?> --EXPECTF-- -Fatal error: Can only throw objects in %sbug33318.php on line 2
\ No newline at end of file +Fatal error: Uncaught exception 'EngineException' with message 'Can only throw objects' in %sbug33318.php:2 +Stack trace: +#0 {main} + thrown in %sbug33318.php on line 2
\ No newline at end of file diff --git a/Zend/tests/bug34064.phpt b/Zend/tests/bug34064.phpt index 84208a54f8..91ee3e6f81 100644 --- a/Zend/tests/bug34064.phpt +++ b/Zend/tests/bug34064.phpt @@ -31,5 +31,9 @@ array(1) { string(2) "ok" } -Fatal error: Cannot use [] for reading in %sbug34064.php on line 18 +Fatal error: Uncaught exception 'EngineException' with message 'Cannot use [] for reading' in %sbug34064.php:18 +Stack trace: +#0 %s(%d): XmlTest->run() +#1 {main} + thrown in %sbug34064.php on line 18 diff --git a/Zend/tests/bug36071.phpt b/Zend/tests/bug36071.phpt index e5146091e1..918cea83b2 100644 --- a/Zend/tests/bug36071.phpt +++ b/Zend/tests/bug36071.phpt @@ -8,4 +8,7 @@ $a = clone 0; $a[0]->b = 0; ?> --EXPECTF-- -Fatal error: __clone method called on non-object in %sbug36071.php on line 2
\ No newline at end of file +Fatal error: Uncaught exception 'EngineException' with message '__clone method called on non-object' in %sbug36071.php:2 +Stack trace: +#0 {main} + thrown in %sbug36071.php on line 2
\ No newline at end of file diff --git a/Zend/tests/bug36268.phpt b/Zend/tests/bug36268.phpt index 5276d50d48..ad652ce015 100644 --- a/Zend/tests/bug36268.phpt +++ b/Zend/tests/bug36268.phpt @@ -11,4 +11,7 @@ $x = new Foo(); bar(); ?> --EXPECTF-- -Fatal error: Call to undefined function bar() in %sbug36268.php on line 8 +Fatal error: Uncaught exception 'EngineException' with message 'Call to undefined function bar()' in %sbug36268.php:8 +Stack trace: +#0 {main} + thrown in %sbug36268.php on line 8 diff --git a/Zend/tests/bug37632.phpt b/Zend/tests/bug37632.phpt index fb72f89345..974471ffd3 100644 --- a/Zend/tests/bug37632.phpt +++ b/Zend/tests/bug37632.phpt @@ -132,4 +132,8 @@ B2::doTest C2::test B4::doTest -Fatal error: Call to protected C4::__construct() from context 'B4' in %sbug37632.php on line %d +Fatal error: Uncaught exception 'EngineException' with message 'Call to protected C4::__construct() from context 'B4'' in %sbug37632.php:%d +Stack trace: +#0 %s(%d): B4::doTest() +#1 {main} + thrown in %sbug37632.php on line %d diff --git a/Zend/tests/bug40621.phpt b/Zend/tests/bug40621.phpt index b15a43171b..3180c8c921 100644 --- a/Zend/tests/bug40621.phpt +++ b/Zend/tests/bug40621.phpt @@ -17,4 +17,8 @@ echo "Done\n"; --EXPECTF-- Deprecated: Non-static method Foo::get() should not be called statically in %s on line %d -Fatal error: Non-static method Foo::__construct() cannot be called statically in %s on line %d +Fatal error: Uncaught exception 'EngineException' with message 'Non-static method Foo::__construct() cannot be called statically' in %s:%d +Stack trace: +#0 %s(%d): Foo::get() +#1 {main} + thrown in %s on line %d diff --git a/Zend/tests/bug41633_2.phpt b/Zend/tests/bug41633_2.phpt index 3deb4516ac..d64092c691 100644 --- a/Zend/tests/bug41633_2.phpt +++ b/Zend/tests/bug41633_2.phpt @@ -8,4 +8,7 @@ class Foo { echo Foo::A."\n"; ?> --EXPECTF-- -Fatal error: Undefined class constant 'self::B' in %sbug41633_2.php on line 5 +Fatal error: Uncaught exception 'EngineException' with message 'Undefined class constant 'self::B'' in %sbug41633_2.php:5 +Stack trace: +#0 {main} + thrown in %sbug41633_2.php on line 5 diff --git a/Zend/tests/bug41633_3.phpt b/Zend/tests/bug41633_3.phpt index 7b9452db85..bf0e95db81 100644 --- a/Zend/tests/bug41633_3.phpt +++ b/Zend/tests/bug41633_3.phpt @@ -9,4 +9,7 @@ class Foo { echo Foo::A; ?> --EXPECTF-- -Fatal error: Cannot declare self-referencing constant 'Foo::B' in %sbug41633_3.php on line %d +Fatal error: Uncaught exception 'EngineException' with message 'Cannot declare self-referencing constant 'Foo::B'' in %sbug41633_3.php:%d +Stack trace: +#0 {main} + thrown in %sbug41633_3.php on line %d diff --git a/Zend/tests/bug41813.phpt b/Zend/tests/bug41813.phpt index c330b14fe8..5c52051692 100644 --- a/Zend/tests/bug41813.phpt +++ b/Zend/tests/bug41813.phpt @@ -9,4 +9,7 @@ $foo[0]->bar = "xyz"; echo "Done\n"; ?> --EXPECTF-- -Fatal error: Cannot use string offset as an array in %s on line %d +Fatal error: Uncaught exception 'EngineException' with message 'Cannot use string offset as an array' in %s:%d +Stack trace: +#0 {main} + thrown in %s on line %d diff --git a/Zend/tests/bug41919.phpt b/Zend/tests/bug41919.phpt index 0ac3276b07..4b872b4867 100644 --- a/Zend/tests/bug41919.phpt +++ b/Zend/tests/bug41919.phpt @@ -8,4 +8,7 @@ $foo[3]->bar[1] = "bang"; echo "ok\n"; ?> --EXPECTF-- -Fatal error: Cannot use string offset as an object in %sbug41919.php on line %d +Fatal error: Uncaught exception 'EngineException' with message 'Cannot use string offset as an object' in %sbug41919.php:%d +Stack trace: +#0 {main} + thrown in %sbug41919.php on line %d diff --git a/Zend/tests/bug42817.phpt b/Zend/tests/bug42817.phpt index b1beca4d0a..46d01170a7 100644 --- a/Zend/tests/bug42817.phpt +++ b/Zend/tests/bug42817.phpt @@ -6,4 +6,7 @@ $a = clone(null); array_push($a->b, $c); ?> --EXPECTF-- -Fatal error: __clone method called on non-object in %sbug42817.php on line 2 +Fatal error: Uncaught exception 'EngineException' with message '__clone method called on non-object' in %sbug42817.php:2 +Stack trace: +#0 {main} + thrown in %sbug42817.php on line 2 diff --git a/Zend/tests/bug42818.phpt b/Zend/tests/bug42818.phpt index 09ad693b44..ea83ced5fc 100644 --- a/Zend/tests/bug42818.phpt +++ b/Zend/tests/bug42818.phpt @@ -5,5 +5,8 @@ Bug #42818 ($foo = clone(array()); leaks memory) $foo = clone(array()); ?> --EXPECTF-- -Fatal error: __clone method called on non-object in %sbug42818.php on line 2 +Fatal error: Uncaught exception 'EngineException' with message '__clone method called on non-object' in %sbug42818.php:2 +Stack trace: +#0 {main} + thrown in %sbug42818.php on line 2 diff --git a/Zend/tests/bug42819.phpt b/Zend/tests/bug42819.phpt index e526603699..e6bdba715b 100644 --- a/Zend/tests/bug42819.phpt +++ b/Zend/tests/bug42819.phpt @@ -299,4 +299,8 @@ Array [1] => 1 ) -Fatal error: Undefined constant 'foo\foo\unknown' in %sbug42819.php on line %d
\ No newline at end of file +Fatal error: Uncaught exception 'EngineException' with message 'Undefined constant 'foo\foo\unknown'' in %sbug42819.php:%d +Stack trace: +#0 %s(%d): foo\oops() +#1 {main} + thrown in %sbug42819.php on line %d
\ No newline at end of file diff --git a/Zend/tests/bug42937.phpt b/Zend/tests/bug42937.phpt index 537c567927..53e6fe7f49 100644 --- a/Zend/tests/bug42937.phpt +++ b/Zend/tests/bug42937.phpt @@ -39,4 +39,8 @@ test3 test4 test5 -Fatal error: Call to undefined method C::test6() in %sbug42937.php on line 21 +Fatal error: Uncaught exception 'EngineException' with message 'Call to undefined method C::test6()' in %sbug42937.php:21 +Stack trace: +#0 %s(%d): B->test() +#1 {main} + thrown in %sbug42937.php on line 21 diff --git a/Zend/tests/bug43344_10.phpt b/Zend/tests/bug43344_10.phpt index e9f918cd61..67508d0d69 100644 --- a/Zend/tests/bug43344_10.phpt +++ b/Zend/tests/bug43344_10.phpt @@ -5,4 +5,7 @@ Bug #43344.10 (Wrong error message for undefined namespace constant) echo namespace\bar."\n"; ?> --EXPECTF-- -Fatal error: Undefined constant 'bar' in %sbug43344_10.php on line %d +Fatal error: Uncaught exception 'EngineException' with message 'Undefined constant 'bar'' in %sbug43344_10.php:%d +Stack trace: +#0 {main} + thrown in %sbug43344_10.php on line %d diff --git a/Zend/tests/bug43344_11.phpt b/Zend/tests/bug43344_11.phpt index b55cdccdea..d7c51e6361 100644 --- a/Zend/tests/bug43344_11.phpt +++ b/Zend/tests/bug43344_11.phpt @@ -8,4 +8,8 @@ function f($a=namespace\bar) { echo f()."\n"; ?> --EXPECTF-- -Fatal error: Undefined constant 'bar' in %sbug43344_11.php on line %d +Fatal error: Uncaught exception 'EngineException' with message 'Undefined constant 'bar'' in %sbug43344_11.php:%d +Stack trace: +#0 %s(%d): f() +#1 {main} + thrown in %sbug43344_11.php on line %d diff --git a/Zend/tests/bug43344_12.phpt b/Zend/tests/bug43344_12.phpt index 4d1e154f31..1d14d4b40b 100644 --- a/Zend/tests/bug43344_12.phpt +++ b/Zend/tests/bug43344_12.phpt @@ -8,4 +8,8 @@ function f($a=array(namespace\bar)) { echo f()."\n"; ?> --EXPECTF-- -Fatal error: Undefined constant 'bar' in %sbug43344_12.php on line %d +Fatal error: Uncaught exception 'EngineException' with message 'Undefined constant 'bar'' in %sbug43344_12.php:%d +Stack trace: +#0 %s(%d): f() +#1 {main} + thrown in %sbug43344_12.php on line %d diff --git a/Zend/tests/bug43344_13.phpt b/Zend/tests/bug43344_13.phpt index c6aaf92fb3..83d79864d1 100644 --- a/Zend/tests/bug43344_13.phpt +++ b/Zend/tests/bug43344_13.phpt @@ -9,4 +9,8 @@ function f($a=array(namespace\bar=>0)) { echo f()."\n"; ?> --EXPECTF-- -Fatal error: Undefined constant 'bar' in %sbug43344_13.php on line %d +Fatal error: Uncaught exception 'EngineException' with message 'Undefined constant 'bar'' in %sbug43344_13.php:%d +Stack trace: +#0 %s(%d): f() +#1 {main} + thrown in %sbug43344_13.php on line %d diff --git a/Zend/tests/bug43344_2.phpt b/Zend/tests/bug43344_2.phpt index 57766afa94..094672f3d1 100644 --- a/Zend/tests/bug43344_2.phpt +++ b/Zend/tests/bug43344_2.phpt @@ -6,4 +6,7 @@ namespace Foo; echo Foo::bar."\n"; ?> --EXPECTF-- -Fatal error: Class 'Foo\Foo' not found in %sbug43344_2.php on line %d +Fatal error: Uncaught exception 'EngineException' with message 'Class 'Foo\Foo' not found' in %sbug43344_2.php:%d +Stack trace: +#0 {main} + thrown in %sbug43344_2.php on line %d diff --git a/Zend/tests/bug43344_6.phpt b/Zend/tests/bug43344_6.phpt index 38e1961aad..ef9eb58867 100644 --- a/Zend/tests/bug43344_6.phpt +++ b/Zend/tests/bug43344_6.phpt @@ -6,4 +6,7 @@ namespace Foo; echo namespace\bar."\n"; ?> --EXPECTF-- -Fatal error: Undefined constant 'Foo\bar' in %sbug43344_6.php on line %d +Fatal error: Uncaught exception 'EngineException' with message 'Undefined constant 'Foo\bar'' in %sbug43344_6.php:%d +Stack trace: +#0 {main} + thrown in %sbug43344_6.php on line %d diff --git a/Zend/tests/bug43344_7.phpt b/Zend/tests/bug43344_7.phpt index 94e00d9e1f..661e93aea8 100644 --- a/Zend/tests/bug43344_7.phpt +++ b/Zend/tests/bug43344_7.phpt @@ -9,4 +9,8 @@ function f($a=namespace\bar) { echo f()."\n"; ?> --EXPECTF-- -Fatal error: Undefined constant 'Foo\bar' in %sbug43344_7.php on line %d +Fatal error: Uncaught exception 'EngineException' with message 'Undefined constant 'Foo\bar'' in %sbug43344_7.php:%d +Stack trace: +#0 %s(%d): Foo\f() +#1 {main} + thrown in %sbug43344_7.php on line %d diff --git a/Zend/tests/bug43344_8.phpt b/Zend/tests/bug43344_8.phpt index eb694f7118..14aeb7d8af 100644 --- a/Zend/tests/bug43344_8.phpt +++ b/Zend/tests/bug43344_8.phpt @@ -9,4 +9,8 @@ function f($a=array(namespace\bar)) { echo f()."\n"; ?> --EXPECTF-- -Fatal error: Undefined constant 'Foo\bar' in %sbug43344_8.php on line %d +Fatal error: Uncaught exception 'EngineException' with message 'Undefined constant 'Foo\bar'' in %sbug43344_8.php:%d +Stack trace: +#0 %s(%d): Foo\f() +#1 {main} + thrown in %sbug43344_8.php on line %d diff --git a/Zend/tests/bug43344_9.phpt b/Zend/tests/bug43344_9.phpt index 31604e7a94..0642dc545a 100644 --- a/Zend/tests/bug43344_9.phpt +++ b/Zend/tests/bug43344_9.phpt @@ -10,4 +10,8 @@ function f($a=array(namespace\bar=>0)) { echo f()."\n"; ?> --EXPECTF-- -Fatal error: Undefined constant 'Foo\bar' in %sbug43344_9.php on line %d +Fatal error: Uncaught exception 'EngineException' with message 'Undefined constant 'Foo\bar'' in %sbug43344_9.php:%d +Stack trace: +#0 %s(%d): Foo\f() +#1 {main} + thrown in %sbug43344_9.php on line %d 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 diff --git a/Zend/tests/bug46304.phpt b/Zend/tests/bug46304.phpt index 0a6e3bffcb..43f28775e5 100644 --- a/Zend/tests/bug46304.phpt +++ b/Zend/tests/bug46304.phpt @@ -62,4 +62,7 @@ value6 value6 value6 -Fatal error: Undefined constant 'NS1\ns2\coNSt1' in %sbug46304.php on line %d +Fatal error: Uncaught exception 'EngineException' with message 'Undefined constant 'NS1\ns2\coNSt1'' in %sbug46304.php:%d +Stack trace: +#0 {main} + thrown in %sbug46304.php on line %d diff --git a/Zend/tests/bug46381.phpt b/Zend/tests/bug46381.phpt index 92c020b167..c6484a00f5 100644 --- a/Zend/tests/bug46381.phpt +++ b/Zend/tests/bug46381.phpt @@ -14,4 +14,8 @@ $test->method(); echo "Done\n"; ?> --EXPECTF-- -Fatal error: Non-static method ArrayIterator::current() cannot be called statically in %s on line %d +Fatal error: Uncaught exception 'EngineException' with message 'Non-static method ArrayIterator::current() cannot be called statically' in %s:%d +Stack trace: +#0 %s(%d): test->method() +#1 {main} + thrown in %s on line %d diff --git a/Zend/tests/bug47054.phpt b/Zend/tests/bug47054.phpt index 6e5f4f68ab..378cae9ba5 100644 --- a/Zend/tests/bug47054.phpt +++ b/Zend/tests/bug47054.phpt @@ -36,4 +36,8 @@ Warning: get_called_class() called from outside a class in %s on line %d Deprecated: Non-static method D::m() should not be called statically in %s on line %d -Fatal error: Using $this when not in object context in %s on line %d +Fatal error: Uncaught exception 'EngineException' with message 'Using $this when not in object context' in %s:%d +Stack trace: +#0 %s(%d): D::m() +#1 {main} + thrown in %s on line %d diff --git a/Zend/tests/bug47699.phpt b/Zend/tests/bug47699.phpt index 23ea5a494d..6e96c5bb31 100644 --- a/Zend/tests/bug47699.phpt +++ b/Zend/tests/bug47699.phpt @@ -15,4 +15,7 @@ new X(); ?> --EXPECTF-- BB -Fatal error: Class 'X' not found in %sbug47699.php on line %d +Fatal error: Uncaught exception 'EngineException' with message 'Class 'X' not found' in %sbug47699.php:%d +Stack trace: +#0 {main} + thrown in %sbug47699.php on line %d diff --git a/Zend/tests/bug47704.phpt b/Zend/tests/bug47704.phpt index 151754a4f9..db51d9eb20 100644 --- a/Zend/tests/bug47704.phpt +++ b/Zend/tests/bug47704.phpt @@ -6,4 +6,7 @@ $s = "abd"; $s[0]->a += 1; ?> --EXPECTF-- -Fatal error: Cannot use string offset as an object in %sbug47704.php on line %d +Fatal error: Uncaught exception 'EngineException' with message 'Cannot use string offset as an object' in %sbug47704.php:%d +Stack trace: +#0 {main} + thrown in %sbug47704.php on line %d diff --git a/Zend/tests/bug48215_2.phpt b/Zend/tests/bug48215_2.phpt index da6b7a84b6..aac5bfd5e2 100644 --- a/Zend/tests/bug48215_2.phpt +++ b/Zend/tests/bug48215_2.phpt @@ -16,4 +16,8 @@ $c = new c(); ?> ===DONE=== --EXPECTF-- -Fatal error: Call to undefined method b::b() in %s on line %d +Fatal error: Uncaught exception 'EngineException' with message 'Call to undefined method b::b()' in %s:%d +Stack trace: +#0 %s(%d): c->__construct() +#1 {main} + thrown in %s on line %d diff --git a/Zend/tests/bug49866.phpt b/Zend/tests/bug49866.phpt index 7fbc0d8028..047a162953 100644 --- a/Zend/tests/bug49866.phpt +++ b/Zend/tests/bug49866.phpt @@ -7,4 +7,7 @@ $b = &$a[1]; $b = "f"; echo $a; --EXPECTF-- -Fatal error: Cannot create references to/from string offsets nor overloaded objects in %sbug49866.php on line 3 +Fatal error: Uncaught exception 'EngineException' with message 'Cannot create references to/from string offsets nor overloaded objects' in %sbug49866.php:3 +Stack trace: +#0 {main} + thrown in %sbug49866.php on line 3 diff --git a/Zend/tests/bug50146.phpt b/Zend/tests/bug50146.phpt index 2ad1ff6e5a..f6cdb796dd 100644 --- a/Zend/tests/bug50146.phpt +++ b/Zend/tests/bug50146.phpt @@ -17,4 +17,7 @@ var_dump(isset($obj->a)); bool(false) bool(false) -Fatal error: Closure object cannot have properties in %s on line %d +Fatal error: Uncaught exception 'EngineException' with message 'Closure object cannot have properties' in %s:%d +Stack trace: +#0 {main} + thrown in %s on line %d diff --git a/Zend/tests/bug52484.phpt b/Zend/tests/bug52484.phpt index ccdf858f65..bf9d494aaa 100644 --- a/Zend/tests/bug52484.phpt +++ b/Zend/tests/bug52484.phpt @@ -16,4 +16,8 @@ unset($a->$prop); ?> --EXPECTF-- -Fatal error: Cannot access empty property in %s on line %d +Fatal error: Uncaught exception 'EngineException' with message 'Cannot access empty property' in %s:%d +Stack trace: +#0 %s(%d): A->__unset('') +#1 {main} + thrown in %s on line %d diff --git a/Zend/tests/bug52484_2.phpt b/Zend/tests/bug52484_2.phpt index 1639c81029..3ffb2af3e9 100644 --- a/Zend/tests/bug52484_2.phpt +++ b/Zend/tests/bug52484_2.phpt @@ -16,4 +16,8 @@ $a->$prop = 2; ?> --EXPECTF-- -Fatal error: Cannot access empty property in %s on line %d +Fatal error: Uncaught exception 'EngineException' with message 'Cannot access empty property' in %s:%d +Stack trace: +#0 %s(%d): A->__set('', 2) +#1 {main} + thrown in %s on line %d diff --git a/Zend/tests/bug52484_3.phpt b/Zend/tests/bug52484_3.phpt index 20dde3d3c5..877b45d9e3 100644 --- a/Zend/tests/bug52484_3.phpt +++ b/Zend/tests/bug52484_3.phpt @@ -16,4 +16,8 @@ var_dump($a->$prop); ?> --EXPECTF-- -Fatal error: Cannot access empty property in %s on line %d +Fatal error: Uncaught exception 'EngineException' with message 'Cannot access empty property' in %s:%d +Stack trace: +#0 %s(%d): A->__get('') +#1 {main} + thrown in %s on line %d diff --git a/Zend/tests/bug61025.phpt b/Zend/tests/bug61025.phpt index 0709c28fbc..69f64d61e8 100644 --- a/Zend/tests/bug61025.phpt +++ b/Zend/tests/bug61025.phpt @@ -24,4 +24,7 @@ Warning: The magic method __invoke() must have public visibility and cannot be s Warning: The magic method __invoke() must have public visibility and cannot be static in %sbug61025.php on line %d Bar -Fatal error: Call to private method Bar::__invoke() from context '' in %sbug61025.php on line %d +Fatal error: Uncaught exception 'EngineException' with message 'Call to private method Bar::__invoke() from context ''' in %sbug61025.php:%d +Stack trace: +#0 {main} + thrown in %sbug61025.php on line %d diff --git a/Zend/tests/bug63111.phpt b/Zend/tests/bug63111.phpt index be6c0c31f5..92b3a5e93a 100644 --- a/Zend/tests/bug63111.phpt +++ b/Zend/tests/bug63111.phpt @@ -31,5 +31,8 @@ bool(true) bool(true) ok -Fatal error: Cannot call abstract method Foo::bar() in %sbug63111.php on line 20 +Fatal error: Uncaught exception 'EngineException' with message 'Cannot call abstract method Foo::bar()' in %sbug63111.php:20 +Stack trace: +#0 {main} + thrown in %sbug63111.php on line 20 diff --git a/Zend/tests/bug63173.phpt b/Zend/tests/bug63173.phpt index 36ebf203d2..34d3d6e7d7 100644 --- a/Zend/tests/bug63173.phpt +++ b/Zend/tests/bug63173.phpt @@ -9,4 +9,7 @@ $callback(); ?> --EXPECTF-- -Fatal error: Array callback has to contain indices 0 and 1 in %s on line %d +Fatal error: Uncaught exception 'EngineException' with message 'Array callback has to contain indices 0 and 1' in %s:%d +Stack trace: +#0 {main} + thrown in %s on line %d diff --git a/Zend/tests/bug64720.phpt b/Zend/tests/bug64720.phpt index 6c33165bb5..fd71d6bdd6 100644 --- a/Zend/tests/bug64720.phpt +++ b/Zend/tests/bug64720.phpt @@ -45,4 +45,8 @@ $bar = new Bar(); $bar->test(); ?> --EXPECTF-- -Fatal error: Access to undeclared static property: Stat::$requests in %sbug64720.php on line 12 +Fatal error: Uncaught exception 'EngineException' with message 'Access to undeclared static property: Stat::$requests' in %sbug64720.php:12 +Stack trace: +#0 [internal function]: Stat->__destruct() +#1 {main} + thrown in %sbug64720.php on line 12 diff --git a/Zend/tests/bug65784.phpt b/Zend/tests/bug65784.phpt index 29f086b5e3..2f80e93b35 100644 --- a/Zend/tests/bug65784.phpt +++ b/Zend/tests/bug65784.phpt @@ -57,4 +57,8 @@ $bar = foo3(); string(9) "not catch" NULL -Fatal error: Class 'NotExists' not found in %sbug65784.php on line %d +Fatal error: Uncaught exception 'EngineException' with message 'Class 'NotExists' not found' in %sbug65784.php:%d +Stack trace: +#0 %s(%d): foo3() +#1 {main} + thrown in %sbug65784.php on line %d diff --git a/Zend/tests/bug65911.phpt b/Zend/tests/bug65911.phpt index b9f37b7bd6..470d45f1f5 100644 --- a/Zend/tests/bug65911.phpt +++ b/Zend/tests/bug65911.phpt @@ -17,4 +17,8 @@ $obj = new B(); $obj->go(); ?> --EXPECTF-- -Fatal error: Access to undeclared static property: A::$this in %s on line %d +Fatal error: Uncaught exception 'EngineException' with message 'Access to undeclared static property: A::$this' in %s:%d +Stack trace: +#0 %s(%d): B->go() +#1 {main} + thrown in %s on line %d diff --git a/Zend/tests/bug68652.phpt b/Zend/tests/bug68652.phpt index be65513faa..e96a263aaa 100644 --- a/Zend/tests/bug68652.phpt +++ b/Zend/tests/bug68652.phpt @@ -36,5 +36,10 @@ class Bar { $foo = new Foo(); ?> --EXPECTF-- -Fatal error: Access to undeclared static property: Bar::$instance in %sbug68652.php on line %d +Fatal error: Uncaught exception 'EngineException' with message 'Access to undeclared static property: Bar::$instance' in %sbug68652.php:%d +Stack trace: +#0 %s(%d): Bar::getInstance() +#1 [internal function]: Foo->__destruct() +#2 {main} + thrown in %sbug68652.php on line %d diff --git a/Zend/tests/call_static_004.phpt b/Zend/tests/call_static_004.phpt index 5af33ef45b..09d28dd371 100644 --- a/Zend/tests/call_static_004.phpt +++ b/Zend/tests/call_static_004.phpt @@ -18,4 +18,7 @@ foo::$a(); --EXPECTF-- string(3) "AaA" -Fatal error: Function name must be a string in %s on line %d +Fatal error: Uncaught exception 'EngineException' with message 'Function name must be a string' in %s:%d +Stack trace: +#0 {main} + thrown in %s on line %d diff --git a/Zend/tests/call_static_006.phpt b/Zend/tests/call_static_006.phpt index b160acc63a..723c65747d 100644 --- a/Zend/tests/call_static_006.phpt +++ b/Zend/tests/call_static_006.phpt @@ -27,4 +27,7 @@ ok Deprecated: Non-static method foo::aa() should not be called statically in %s on line %d ok -Fatal error: Cannot call constructor in %s on line %d +Fatal error: Uncaught exception 'EngineException' with message 'Cannot call constructor' in %s:%d +Stack trace: +#0 {main} + thrown in %s on line %d diff --git a/Zend/tests/call_user_func_004.phpt b/Zend/tests/call_user_func_004.phpt index add15249db..cc675cc400 100644 --- a/Zend/tests/call_user_func_004.phpt +++ b/Zend/tests/call_user_func_004.phpt @@ -15,4 +15,8 @@ call_user_func(array('foo', 'teste')); --EXPECTF-- Deprecated: %son-static method foo::teste() should not be called statically in %s on line %d -Fatal error: Using $this when not in object context in %s on line %d +Fatal error: Uncaught exception 'EngineException' with message 'Using $this when not in object context' in %s:%d +Stack trace: +#0 %s(%d): foo::teste() +#1 {main} + thrown in %s on line %d diff --git a/Zend/tests/class_alias_008.phpt b/Zend/tests/class_alias_008.phpt index 8ee8fa03f8..b294b01ac9 100644 --- a/Zend/tests/class_alias_008.phpt +++ b/Zend/tests/class_alias_008.phpt @@ -13,4 +13,7 @@ new $a; ?> --EXPECTF-- -Fatal error: Cannot instantiate abstract class foo in %s on line %d +Fatal error: Uncaught exception 'EngineException' with message 'Cannot instantiate abstract class foo' in %s:%d +Stack trace: +#0 {main} + thrown in %s on line %d diff --git a/Zend/tests/class_alias_016.phpt b/Zend/tests/class_alias_016.phpt index 930f2ee0e4..8bb1026eaf 100644 --- a/Zend/tests/class_alias_016.phpt +++ b/Zend/tests/class_alias_016.phpt @@ -18,4 +18,7 @@ var_dump(new foo); object(foo\bar)#%d (0) { } -Fatal error: Class 'foo\foo' not found in %s on line %d +Fatal error: Uncaught exception 'EngineException' with message 'Class 'foo\foo' not found' in %s:%d +Stack trace: +#0 {main} + thrown in %s on line %d diff --git a/Zend/tests/class_alias_020.phpt b/Zend/tests/class_alias_020.phpt index e2c7d9245e..a29f90c77d 100644 --- a/Zend/tests/class_alias_020.phpt +++ b/Zend/tests/class_alias_020.phpt @@ -30,4 +30,7 @@ object(foo\foo)#1 (0) { object(foo\bar\foo)#2 (0) { } -Fatal error: Class 'foo\bar' not found in %s on line %d +Fatal error: Uncaught exception 'EngineException' with message 'Class 'foo\bar' not found' in %s:%d +Stack trace: +#0 {main} + thrown in %s on line %d diff --git a/Zend/tests/class_constants_001.phpt b/Zend/tests/class_constants_001.phpt index 45270f6f73..8eebc58bda 100644 --- a/Zend/tests/class_constants_001.phpt +++ b/Zend/tests/class_constants_001.phpt @@ -19,4 +19,7 @@ echo "Done\n"; string(6) "string" int(1) -Fatal error: Undefined class constant 'val3' in %s on line %d +Fatal error: Uncaught exception 'EngineException' with message 'Undefined class constant 'val3'' in %s:%d +Stack trace: +#0 {main} + thrown in %s on line %d diff --git a/Zend/tests/class_name_as_scalar_error_005.phpt b/Zend/tests/class_name_as_scalar_error_005.phpt index 27700fd646..32524d11f9 100644 --- a/Zend/tests/class_name_as_scalar_error_005.phpt +++ b/Zend/tests/class_name_as_scalar_error_005.phpt @@ -7,4 +7,7 @@ $x = static::class; ?> --EXPECTF-- -Fatal error: Cannot use "static" when no class scope is active in %s on line 3 +Fatal error: Uncaught exception 'EngineException' with message 'Cannot use "static" when no class scope is active' in %s:3 +Stack trace: +#0 {main} + thrown in %s on line 3 diff --git a/Zend/tests/class_name_as_scalar_error_006.phpt b/Zend/tests/class_name_as_scalar_error_006.phpt index a1078d0c7e..954ab2e23b 100644 --- a/Zend/tests/class_name_as_scalar_error_006.phpt +++ b/Zend/tests/class_name_as_scalar_error_006.phpt @@ -7,4 +7,7 @@ $x = parent::class; ?> --EXPECTF-- -Fatal error: Cannot use "parent" when no class scope is active in %s on line 3 +Fatal error: Uncaught exception 'EngineException' with message 'Cannot use "parent" when no class scope is active' in %s:3 +Stack trace: +#0 {main} + thrown in %s on line 3 diff --git a/Zend/tests/class_name_as_scalar_error_007.phpt b/Zend/tests/class_name_as_scalar_error_007.phpt index 684470d211..fac2dbeb22 100644 --- a/Zend/tests/class_name_as_scalar_error_007.phpt +++ b/Zend/tests/class_name_as_scalar_error_007.phpt @@ -7,4 +7,7 @@ var_dump(self::class); ?> --EXPECTF-- -Fatal error: Cannot use "self" when no class scope is active in %s on line 3 +Fatal error: Uncaught exception 'EngineException' with message 'Cannot use "self" when no class scope is active' in %s:3 +Stack trace: +#0 {main} + thrown in %s on line 3 diff --git a/Zend/tests/clone_001.phpt b/Zend/tests/clone_001.phpt index c8ff8d8340..9f147f9e35 100644 --- a/Zend/tests/clone_001.phpt +++ b/Zend/tests/clone_001.phpt @@ -7,4 +7,7 @@ $a = clone array(); ?> --EXPECTF-- -Fatal error: __clone method called on non-object in %s on line %d +Fatal error: Uncaught exception 'EngineException' with message '__clone method called on non-object' in %s:%d +Stack trace: +#0 {main} + thrown in %s on line %d diff --git a/Zend/tests/clone_003.phpt b/Zend/tests/clone_003.phpt index 362e3466e6..4a97c565b1 100644 --- a/Zend/tests/clone_003.phpt +++ b/Zend/tests/clone_003.phpt @@ -9,4 +9,7 @@ $a = clone $b; --EXPECTF-- Notice: Undefined variable: b in %s on line %d -Fatal error: __clone method called on non-object in %s on line %d +Fatal error: Uncaught exception 'EngineException' with message '__clone method called on non-object' in %s:%d +Stack trace: +#0 {main} + thrown in %s on line %d diff --git a/Zend/tests/clone_004.phpt b/Zend/tests/clone_004.phpt index 984313ce74..10b18fbc54 100644 --- a/Zend/tests/clone_004.phpt +++ b/Zend/tests/clone_004.phpt @@ -17,4 +17,7 @@ $a = clone $c->b[1]; ?> --EXPECTF-- -Fatal error: Cannot use object of type foo as array in %s on line %d +Fatal error: Uncaught exception 'EngineException' with message 'Cannot use object of type foo as array' in %s:%d +Stack trace: +#0 {main} + thrown in %s on line %d diff --git a/Zend/tests/closure_005.phpt b/Zend/tests/closure_005.phpt index 4e32faa017..0143ac173c 100644 --- a/Zend/tests/closure_005.phpt +++ b/Zend/tests/closure_005.phpt @@ -71,4 +71,8 @@ echo "Done\n"; 7 Destroyed -Fatal error: Using $this when not in object context in %sclosure_005.php on line 28 +Fatal error: Uncaught exception 'EngineException' with message 'Using $this when not in object context' in %sclosure_005.php:28 +Stack trace: +#0 %s(%d): A::{closure}() +#1 {main} + thrown in %sclosure_005.php on line 28 diff --git a/Zend/tests/closure_019.phpt b/Zend/tests/closure_019.phpt index 57aa2dec17..682c7db634 100644 --- a/Zend/tests/closure_019.phpt +++ b/Zend/tests/closure_019.phpt @@ -26,4 +26,8 @@ int(9) Notice: Only variable references should be returned by reference in %sclosure_019.php on line 4 int(81) -Fatal error: Cannot pass parameter 1 by reference in %s on line %d +Fatal error: Uncaught exception 'EngineException' with message 'Cannot pass parameter 1 by reference' in %s:%d +Stack trace: +#0 %s(%d): test() +#1 {main} + thrown in %s on line %d diff --git a/Zend/tests/closure_020.phpt b/Zend/tests/closure_020.phpt index bec2bedd7f..edc9659ca1 100644 --- a/Zend/tests/closure_020.phpt +++ b/Zend/tests/closure_020.phpt @@ -40,4 +40,7 @@ object(foo)#%d (2) { bool(true) bool(true) -Fatal error: Cannot access private property foo::$test in %s on line %d +Fatal error: Uncaught exception 'EngineException' with message 'Cannot access private property foo::$test' in %s:%d +Stack trace: +#0 {main} + thrown in %s on line %d diff --git a/Zend/tests/closure_022.phpt b/Zend/tests/closure_022.phpt index 25fbe931d8..55f1ff5a8d 100644 --- a/Zend/tests/closure_022.phpt +++ b/Zend/tests/closure_022.phpt @@ -8,5 +8,8 @@ $foo = function() use ($a) { $foo->a = 1; ?> --EXPECTF-- -Fatal error: Closure object cannot have properties in %sclosure_022.php on line 5 +Fatal error: Uncaught exception 'EngineException' with message 'Closure object cannot have properties' in %sclosure_022.php:5 +Stack trace: +#0 {main} + thrown in %sclosure_022.php on line 5 diff --git a/Zend/tests/closure_033.phpt b/Zend/tests/closure_033.phpt index f6510066bb..bc7eb88b2f 100644 --- a/Zend/tests/closure_033.phpt +++ b/Zend/tests/closure_033.phpt @@ -25,4 +25,7 @@ $o->func(); --EXPECTF-- Test::{closure}() -Fatal error: Call to private method Test::func() from context '' in %sclosure_033.php on line %d +Fatal error: Uncaught exception 'EngineException' with message 'Call to private method Test::func() from context ''' in %sclosure_033.php:%d +Stack trace: +#0 {main} + thrown in %sclosure_033.php on line %d diff --git a/Zend/tests/closure_038.phpt b/Zend/tests/closure_038.phpt index fef0734786..b1e9406872 100644 --- a/Zend/tests/closure_038.phpt +++ b/Zend/tests/closure_038.phpt @@ -55,4 +55,18 @@ Testing with scope as string int(23) int(24) -Fatal error: Cannot access private property B::$x in %s on line %d +Fatal error: Uncaught exception 'EngineException' with message '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 +Stack trace: +#0 %s(%d): Closure->{closure}() +#1 {main} + +Next exception 'EngineException' with message 'Cannot access private property B::$x' in %s:%d +Stack trace: +#0 %s(%d): Closure->{closure}() +#1 {main} + thrown in %s on line %d diff --git a/Zend/tests/closure_039.phpt b/Zend/tests/closure_039.phpt index c6a727c0fa..9e5ecbd21b 100644 --- a/Zend/tests/closure_039.phpt +++ b/Zend/tests/closure_039.phpt @@ -55,4 +55,18 @@ Testing with scope as string int(23) int(24) -Fatal error: Cannot access private property B::$x in %s on line %d +Fatal error: Uncaught exception 'EngineException' with message '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 +Stack trace: +#0 %s(%d): Closure->{closure}() +#1 {main} + +Next exception 'EngineException' with message 'Cannot access private property B::$x' in %s:%d +Stack trace: +#0 %s(%d): Closure->{closure}() +#1 {main} + thrown in %s on line %d diff --git a/Zend/tests/constant_expressions_invalid_offset_type_error.phpt b/Zend/tests/constant_expressions_invalid_offset_type_error.phpt index 440eabc652..ded692c2c4 100644 --- a/Zend/tests/constant_expressions_invalid_offset_type_error.phpt +++ b/Zend/tests/constant_expressions_invalid_offset_type_error.phpt @@ -8,4 +8,7 @@ const C2 = [C1, [] => 1]; ?> --EXPECTF-- -Fatal error: Illegal offset type in %s on line %d +Fatal error: Uncaught exception 'EngineException' with message 'Illegal offset type' in %s:%d +Stack trace: +#0 {main} + thrown in %s on line %d diff --git a/Zend/tests/constant_expressions_self_referencing_array.phpt b/Zend/tests/constant_expressions_self_referencing_array.phpt index ae76a08602..6820f47ded 100644 --- a/Zend/tests/constant_expressions_self_referencing_array.phpt +++ b/Zend/tests/constant_expressions_self_referencing_array.phpt @@ -9,5 +9,8 @@ class A { var_dump(A::FOO); ?> --EXPECTF-- -Fatal error: Cannot declare self-referencing constant 'self::FOO' in %s on line %d +Fatal error: Uncaught exception 'EngineException' with message 'Cannot declare self-referencing constant 'self::FOO'' in %s:%d +Stack trace: +#0 {main} + thrown in %s on line %d diff --git a/Zend/tests/dereference_002.phpt b/Zend/tests/dereference_002.phpt index da13decc39..4d8d9c9942 100644 --- a/Zend/tests/dereference_002.phpt +++ b/Zend/tests/dereference_002.phpt @@ -76,4 +76,7 @@ NULL Notice: Undefined offset: 3 in %s on line %d -Fatal error: Call to a member function bar() on null in %s on line %d +Fatal error: Uncaught exception 'EngineException' with message 'Call to a member function bar() on null' in %s:%d +Stack trace: +#0 {main} + thrown in %s on line %d diff --git a/Zend/tests/dereference_010.phpt b/Zend/tests/dereference_010.phpt index 6acda77ba8..16c76eb777 100644 --- a/Zend/tests/dereference_010.phpt +++ b/Zend/tests/dereference_010.phpt @@ -24,4 +24,7 @@ var_dump(b()[1]); NULL NULL -Fatal error: Cannot use object of type stdClass as array in %s on line %d +Fatal error: Uncaught exception 'EngineException' with message 'Cannot use object of type stdClass as array' in %s:%d +Stack trace: +#0 {main} + thrown in %s on line %d diff --git a/Zend/tests/div_002.phpt b/Zend/tests/div_002.phpt index b74743380c..6a7794fa46 100644 --- a/Zend/tests/div_002.phpt +++ b/Zend/tests/div_002.phpt @@ -20,4 +20,7 @@ echo "Done\n"; --EXPECTF-- Exception: Unsupported operand types -Fatal error: Unsupported operand types in %s on line %d +Fatal error: Uncaught exception 'EngineException' with message 'Unsupported operand types' in %s:%d +Stack trace: +#0 {main} + thrown in %s on line %d diff --git a/Zend/tests/dynamic_call_001.phpt b/Zend/tests/dynamic_call_001.phpt index 9a22dc2c6b..5a1025cfa7 100644 --- a/Zend/tests/dynamic_call_001.phpt +++ b/Zend/tests/dynamic_call_001.phpt @@ -16,4 +16,7 @@ $a::$a(); --EXPECTF-- Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; foo has a deprecated constructor in %s on line %d -Fatal error: Non-static method foo::foo() cannot be called statically in %s on line %d +Fatal error: Uncaught exception 'EngineException' with message 'Non-static method foo::foo() cannot be called statically' in %s:%d +Stack trace: +#0 {main} + thrown in %s on line %d diff --git a/Zend/tests/dynamic_call_002.phpt b/Zend/tests/dynamic_call_002.phpt index dcb1529692..c8fad52241 100644 --- a/Zend/tests/dynamic_call_002.phpt +++ b/Zend/tests/dynamic_call_002.phpt @@ -9,4 +9,7 @@ $a::$a(); ?> --EXPECTF-- -Fatal error: Function name must be a string in %s on line %d +Fatal error: Uncaught exception 'EngineException' with message 'Function name must be a string' in %s:%d +Stack trace: +#0 {main} + thrown in %s on line %d diff --git a/Zend/tests/dynamic_call_003.phpt b/Zend/tests/dynamic_call_003.phpt index 15b830ec68..7d5e3e5507 100644 --- a/Zend/tests/dynamic_call_003.phpt +++ b/Zend/tests/dynamic_call_003.phpt @@ -10,4 +10,7 @@ $a::$b(); ?> --EXPECTF-- -Fatal error: Function name must be a string in %s on line %d +Fatal error: Uncaught exception 'EngineException' with message 'Function name must be a string' in %s:%d +Stack trace: +#0 {main} + thrown in %s on line %d diff --git a/Zend/tests/dynamic_call_004.phpt b/Zend/tests/dynamic_call_004.phpt index 6e833035a6..056adfc16b 100644 --- a/Zend/tests/dynamic_call_004.phpt +++ b/Zend/tests/dynamic_call_004.phpt @@ -9,4 +9,7 @@ $a::$b(); --EXPECTF-- Notice: Undefined variable: a in %s on line %d -Fatal error: Class name must be a valid object or a string in %s on line %d +Fatal error: Uncaught exception 'EngineException' with message 'Class name must be a valid object or a string' in %s:%d +Stack trace: +#0 {main} + thrown in %s on line %d diff --git a/Zend/tests/errmsg_044.phpt b/Zend/tests/errmsg_044.phpt index e908845ae4..50234f89c6 100644 --- a/Zend/tests/errmsg_044.phpt +++ b/Zend/tests/errmsg_044.phpt @@ -8,4 +8,7 @@ $a[0][0] = new stdclass; ?> --EXPECTF-- -Fatal error: Cannot use object of type stdClass as array in %s on line %d +Fatal error: Uncaught exception 'EngineException' with message 'Cannot use object of type stdClass as array' in %s:%d +Stack trace: +#0 {main} + thrown in %s on line %d diff --git a/Zend/tests/exception_004.phpt b/Zend/tests/exception_004.phpt index 77d947f47e..cc9990c386 100644 --- a/Zend/tests/exception_004.phpt +++ b/Zend/tests/exception_004.phpt @@ -15,4 +15,7 @@ try { ?> --EXPECTF-- -Fatal error: Exceptions must be valid objects derived from the Exception base class in %s on line %d +Fatal error: Uncaught exception 'EngineException' with message 'Exceptions must be valid objects derived from the Exception base class' in %s:%d +Stack trace: +#0 {main} + thrown in %s on line %d diff --git a/Zend/tests/exception_005.phpt b/Zend/tests/exception_005.phpt index 45a9269605..e52b907ac3 100644 --- a/Zend/tests/exception_005.phpt +++ b/Zend/tests/exception_005.phpt @@ -9,4 +9,7 @@ throw new a(); ?> --EXPECTF-- -Fatal error: Cannot instantiate interface a in %s on line %d +Fatal error: Uncaught exception 'EngineException' with message 'Cannot instantiate interface a' in %s:%d +Stack trace: +#0 {main} + thrown in %s on line %d diff --git a/Zend/tests/exception_006.phpt b/Zend/tests/exception_006.phpt index 5c981fc1b6..fb131b5de4 100644 --- a/Zend/tests/exception_006.phpt +++ b/Zend/tests/exception_006.phpt @@ -7,4 +7,7 @@ throw 1; ?> --EXPECTF-- -Fatal error: Can only throw objects in %s on line %d +Fatal error: Uncaught exception 'EngineException' with message 'Can only throw objects' in %s:%d +Stack trace: +#0 {main} + thrown in %s on line %d diff --git a/Zend/tests/exception_013.phpt b/Zend/tests/exception_013.phpt index 72e9377866..4bbfc32050 100644 --- a/Zend/tests/exception_013.phpt +++ b/Zend/tests/exception_013.phpt @@ -33,4 +33,7 @@ Exception: Cannot access private property C::$p in %sexception_013.php on line 1 Exception: Attempt to unset static property C::$a in %sexception_013.php on line 19 -Fatal error: Access to undeclared static property: C::$a in %sexception_013.php on line 24 +Fatal error: Uncaught exception 'EngineException' with message 'Access to undeclared static property: C::$a' in %sexception_013.php:24 +Stack trace: +#0 {main} + thrown in %sexception_013.php on line 24 diff --git a/Zend/tests/exception_014.phpt b/Zend/tests/exception_014.phpt index 71bb14df1d..c1f8615926 100644 --- a/Zend/tests/exception_014.phpt +++ b/Zend/tests/exception_014.phpt @@ -18,4 +18,7 @@ var_dump($x->p); --EXPECTF-- Exception: Cannot access private property C::$p in %sexception_014.php on line %d -Fatal error: Cannot access private property C::$p in %sexception_014.php on line %d +Fatal error: Uncaught exception 'EngineException' with message 'Cannot access private property C::$p' in %sexception_014.php:%d +Stack trace: +#0 {main} + thrown in %sexception_014.php on line %d diff --git a/Zend/tests/exception_015.phpt b/Zend/tests/exception_015.phpt index 033848950e..f4db02aa40 100644 --- a/Zend/tests/exception_015.phpt +++ b/Zend/tests/exception_015.phpt @@ -14,4 +14,7 @@ $s[] = "D"; --EXPECTF-- Exception: [] operator not supported for strings in %sexception_015.php on line %d -Fatal error: [] operator not supported for strings in %sexception_015.php on line %d +Fatal error: Uncaught exception 'EngineException' with message '[] operator not supported for strings' in %sexception_015.php:%d +Stack trace: +#0 {main} + thrown in %sexception_015.php on line %d diff --git a/Zend/tests/exception_016.phpt b/Zend/tests/exception_016.phpt index ffa0a45b84..f4ad66855b 100644 --- a/Zend/tests/exception_016.phpt +++ b/Zend/tests/exception_016.phpt @@ -13,4 +13,7 @@ $this->foo(); --EXPECTF-- Exception: Using $this when not in object context in %sexception_016.php on line %d -Fatal error: Using $this when not in object context in %sexception_016.php on line %d +Fatal error: Uncaught exception 'EngineException' with message 'Using $this when not in object context' in %sexception_016.php:%d +Stack trace: +#0 {main} + thrown in %sexception_016.php on line %d diff --git a/Zend/tests/exception_017.phpt b/Zend/tests/exception_017.phpt index 9ce9ebd8c3..5a5cca7488 100644 --- a/Zend/tests/exception_017.phpt +++ b/Zend/tests/exception_017.phpt @@ -33,4 +33,7 @@ Exception: Cannot call abstract method C::foo() in %sexception_017.php on line % Exception: Argument 1 passed to foo() must be callable, string given, called in %sexception_017.php on line %d Exception: Cannot call abstract method C::foo() -Fatal error: Cannot call abstract method C::foo() in %sexception_017.php on line %d +Fatal error: Uncaught exception 'EngineException' with message 'Cannot call abstract method C::foo()' in %sexception_017.php:%d +Stack trace: +#0 {main} + thrown in %sexception_017.php on line %d diff --git a/Zend/tests/generators/bug63066.phpt b/Zend/tests/generators/bug63066.phpt index 8c4c8b4a84..439b1f5a64 100644 --- a/Zend/tests/generators/bug63066.phpt +++ b/Zend/tests/generators/bug63066.phpt @@ -13,4 +13,8 @@ foreach(gen(new stdClass()) as $value) --EXPECTF-- foo -Fatal error: Call to undefined method stdClass::fatalError() in %sbug63066.php on line 5 +Fatal error: Uncaught exception 'EngineException' with message 'Call to undefined method stdClass::fatalError()' in %sbug63066.php:5 +Stack trace: +#0 %s(%d): gen(Object(stdClass)) +#1 {main} + thrown in %sbug63066.php on line 5 diff --git a/Zend/tests/generators/bug65161.phpt b/Zend/tests/generators/bug65161.phpt index 215c1880e3..104462fd22 100644 --- a/Zend/tests/generators/bug65161.phpt +++ b/Zend/tests/generators/bug65161.phpt @@ -17,4 +17,10 @@ foreach (testGenerator() as $i); ?> --EXPECTF-- -Fatal error: Call to undefined function foo() in %s on line %d +Fatal error: Uncaught exception 'EngineException' with message 'Call to undefined function foo()' in %s:%d +Stack trace: +#0 [internal function]: autoload('SyntaxError') +#1 %s(%d): spl_autoload_call('SyntaxError') +#2 %s(%d): testGenerator() +#3 {main} + thrown in %s on line %d diff --git a/Zend/tests/generators/clone.phpt b/Zend/tests/generators/clone.phpt index 22f4428121..cdf0453577 100644 --- a/Zend/tests/generators/clone.phpt +++ b/Zend/tests/generators/clone.phpt @@ -12,4 +12,7 @@ clone $gen; ?> --EXPECTF-- -Fatal error: Trying to clone an uncloneable object of class Generator in %s on line %d +Fatal error: Uncaught exception 'EngineException' with message 'Trying to clone an uncloneable object of class Generator' in %s:%d +Stack trace: +#0 {main} + thrown in %s on line %d diff --git a/Zend/tests/generators/errors/generator_instantiate_error.phpt b/Zend/tests/generators/errors/generator_instantiate_error.phpt index 990c7481c6..a67a2f30c8 100644 --- a/Zend/tests/generators/errors/generator_instantiate_error.phpt +++ b/Zend/tests/generators/errors/generator_instantiate_error.phpt @@ -7,4 +7,7 @@ new Generator; ?> --EXPECTF-- -Fatal error: The "Generator" class is reserved for internal use and cannot be manually instantiated in %s on line %d +Fatal error: Uncaught exception 'EngineException' with message 'The "Generator" class is reserved for internal use and cannot be manually instantiated' in %s:%d +Stack trace: +#0 {main} + thrown in %s on line %d diff --git a/Zend/tests/generators/errors/resume_running_generator_error.phpt b/Zend/tests/generators/errors/resume_running_generator_error.phpt index 9a39155d38..e31a2c49ae 100644 --- a/Zend/tests/generators/errors/resume_running_generator_error.phpt +++ b/Zend/tests/generators/errors/resume_running_generator_error.phpt @@ -21,4 +21,10 @@ $gen->next(); --EXPECTF-- Exception: Cannot resume an already running generator -Fatal error: Cannot resume an already running generator in %s on line %d +Fatal error: Uncaught exception 'EngineException' with message 'Cannot resume an already running generator' in %s:%d +Stack trace: +#0 %s(%d): Generator->next() +#1 [internal function]: gen() +#2 %s(%d): Generator->send(Object(Generator)) +#3 {main} + thrown in %s on line %d diff --git a/Zend/tests/generators/errors/yield_in_force_closed_finally_error.phpt b/Zend/tests/generators/errors/yield_in_force_closed_finally_error.phpt index aada676a68..83523b1baa 100644 --- a/Zend/tests/generators/errors/yield_in_force_closed_finally_error.phpt +++ b/Zend/tests/generators/errors/yield_in_force_closed_finally_error.phpt @@ -26,4 +26,8 @@ unset($gen); before yield before yield in finally -Fatal error: Cannot yield from finally in a force-closed generator in %s on line %d +Fatal error: Uncaught exception 'EngineException' with message 'Cannot yield from finally in a force-closed generator' in %s:%d +Stack trace: +#0 %s(%d): gen() +#1 {main} + thrown in %s on line %d diff --git a/Zend/tests/generators/throw_not_an_exception.phpt b/Zend/tests/generators/throw_not_an_exception.phpt index d93903e215..4ff1464e7c 100644 --- a/Zend/tests/generators/throw_not_an_exception.phpt +++ b/Zend/tests/generators/throw_not_an_exception.phpt @@ -12,4 +12,9 @@ $gen->throw(new stdClass); ?> --EXPECTF-- -Fatal error: Exceptions must be valid objects derived from the Exception base class in %s on line %d +Fatal error: Uncaught exception 'EngineException' with message 'Exceptions must be valid objects derived from the Exception base class' in %s:%d +Stack trace: +#0 [internal function]: gen() +#1 %s(%d): Generator->throw(Object(stdClass)) +#2 {main} + thrown in %s on line %d diff --git a/Zend/tests/generators/yield_from_already_running.phpt b/Zend/tests/generators/yield_from_already_running.phpt index 789490ccd3..16fda98368 100644 --- a/Zend/tests/generators/yield_from_already_running.phpt +++ b/Zend/tests/generators/yield_from_already_running.phpt @@ -11,4 +11,9 @@ function gen() { ?> --EXPECTF-- -Fatal error: Impossible to yield from the Generator being currently run in %s on line %d +Fatal error: Uncaught exception 'EngineException' with message 'Impossible to yield from the Generator being currently run' in %s:%d +Stack trace: +#0 [internal function]: gen() +#1 %s(%d): Generator->send(Object(Generator)) +#2 {main} + thrown in %s on line %d diff --git a/Zend/tests/indirect_call_array_001.phpt b/Zend/tests/indirect_call_array_001.phpt index 56675b81a5..73bd1584ef 100644 --- a/Zend/tests/indirect_call_array_001.phpt +++ b/Zend/tests/indirect_call_array_001.phpt @@ -8,4 +8,7 @@ $arr(); ?> --EXPECTF-- -Fatal error: Class 'a' not found in %s on line %d +Fatal error: Uncaught exception 'EngineException' with message 'Class 'a' not found' in %s:%d +Stack trace: +#0 {main} + thrown in %s on line %d diff --git a/Zend/tests/indirect_call_array_002.phpt b/Zend/tests/indirect_call_array_002.phpt index 013fa559fe..09c3e79e1a 100644 --- a/Zend/tests/indirect_call_array_002.phpt +++ b/Zend/tests/indirect_call_array_002.phpt @@ -8,4 +8,7 @@ $arr(); ?> --EXPECTF-- -Fatal error: Call to undefined method stdClass::b() in %s on line %d +Fatal error: Uncaught exception 'EngineException' with message 'Call to undefined method stdClass::b()' in %s:%d +Stack trace: +#0 {main} + thrown in %s on line %d diff --git a/Zend/tests/indirect_method_call_002.phpt b/Zend/tests/indirect_method_call_002.phpt index 1589533bdc..8b3e9299dd 100644 --- a/Zend/tests/indirect_method_call_002.phpt +++ b/Zend/tests/indirect_method_call_002.phpt @@ -29,4 +29,7 @@ string(7) "testing" string(3) "foo" NULL -Fatal error: Call to undefined method foo::www() in %s on line %d +Fatal error: Uncaught exception 'EngineException' with message 'Call to undefined method foo::www()' in %s:%d +Stack trace: +#0 {main} + thrown in %s on line %d diff --git a/Zend/tests/list_005.phpt b/Zend/tests/list_005.phpt index a3b0d57434..d82120e252 100644 --- a/Zend/tests/list_005.phpt +++ b/Zend/tests/list_005.phpt @@ -44,4 +44,7 @@ NULL NULL ---- -Fatal error: Cannot use object of type stdClass as array in %s on line %d +Fatal error: Uncaught exception 'EngineException' with message 'Cannot use object of type stdClass as array' in %s:%d +Stack trace: +#0 {main} + thrown in %s on line %d diff --git a/Zend/tests/list_007.phpt b/Zend/tests/list_007.phpt index cc712406ec..1752b749d8 100644 --- a/Zend/tests/list_007.phpt +++ b/Zend/tests/list_007.phpt @@ -9,4 +9,7 @@ var_dump($x, $y); ?> --EXPECTF-- -Fatal error: Cannot use object of type Closure as array in %slist_007.php on line 3 +Fatal error: Uncaught exception 'EngineException' with message 'Cannot use object of type Closure as array' in %slist_007.php:3 +Stack trace: +#0 {main} + thrown in %slist_007.php on line 3 diff --git a/Zend/tests/methods-on-non-objects.phpt b/Zend/tests/methods-on-non-objects.phpt index baf9e1c8c7..803de1cffa 100644 --- a/Zend/tests/methods-on-non-objects.phpt +++ b/Zend/tests/methods-on-non-objects.phpt @@ -9,4 +9,7 @@ echo "Should not get here!\n"; ?> --EXPECTF-- -Fatal error: Call to a member function method() on null in %s on line %d +Fatal error: Uncaught exception 'EngineException' with message 'Call to a member function method() on null' in %s:%d +Stack trace: +#0 {main} + thrown in %s on line %d diff --git a/Zend/tests/mul_001.phpt b/Zend/tests/mul_001.phpt index 2a827af74f..71ec3feb54 100644 --- a/Zend/tests/mul_001.phpt +++ b/Zend/tests/mul_001.phpt @@ -20,4 +20,7 @@ echo "Done\n"; --EXPECTF-- Exception: Unsupported operand types -Fatal error: Unsupported operand types in %s on line %d +Fatal error: Uncaught exception 'EngineException' with message 'Unsupported operand types' in %s:%d +Stack trace: +#0 {main} + thrown in %s on line %d diff --git a/Zend/tests/not_002.phpt b/Zend/tests/not_002.phpt index 4c9be5befa..78899a4652 100644 --- a/Zend/tests/not_002.phpt +++ b/Zend/tests/not_002.phpt @@ -20,4 +20,7 @@ echo "Done\n"; --EXPECTF-- Exception: Unsupported operand types -Fatal error: Unsupported operand types in %s on line %d +Fatal error: Uncaught exception 'EngineException' with message 'Unsupported operand types' in %s:%d +Stack trace: +#0 {main} + thrown in %s on line %d diff --git a/Zend/tests/ns_004.phpt b/Zend/tests/ns_004.phpt index d293f65dce..e7b63ea1ac 100644 --- a/Zend/tests/ns_004.phpt +++ b/Zend/tests/ns_004.phpt @@ -6,4 +6,7 @@ namespace test\ns1; echo get_class(new Exception()),"\n"; --EXPECTF-- -Fatal error: Class 'test\ns1\Exception' not found in %sns_004.php on line %d
\ No newline at end of file +Fatal error: Uncaught exception 'EngineException' with message 'Class 'test\ns1\Exception' not found' in %sns_004.php:%d +Stack trace: +#0 {main} + thrown in %sns_004.php on line %d
\ No newline at end of file diff --git a/Zend/tests/ns_026.phpt b/Zend/tests/ns_026.phpt index 45f88750eb..bb596901e3 100644 --- a/Zend/tests/ns_026.phpt +++ b/Zend/tests/ns_026.phpt @@ -32,4 +32,7 @@ Method - Foo\Foo::__construct Method - Foo\Foo::Bar Func - Foo\Bar -Fatal error: Call to undefined function Foo\Foo\Bar() in %sns_026.php on line %d
\ No newline at end of file +Fatal error: Uncaught exception 'EngineException' with message 'Call to undefined function Foo\Foo\Bar()' in %sns_026.php:%d +Stack trace: +#0 {main} + thrown in %sns_026.php on line %d
\ No newline at end of file diff --git a/Zend/tests/ns_038.phpt b/Zend/tests/ns_038.phpt index f3a8c8cc63..5664eafdcb 100644 --- a/Zend/tests/ns_038.phpt +++ b/Zend/tests/ns_038.phpt @@ -11,5 +11,8 @@ function foo() { --EXPECTF-- ok -Fatal error: Call to undefined method Exception::bar() in %sns_038.php on line 7 +Fatal error: Uncaught exception 'EngineException' with message 'Call to undefined method Exception::bar()' in %sns_038.php:7 +Stack trace: +#0 {main} + thrown in %sns_038.php on line 7 diff --git a/Zend/tests/ns_057.phpt b/Zend/tests/ns_057.phpt index 13bf3054cc..aae2e7c12b 100644 --- a/Zend/tests/ns_057.phpt +++ b/Zend/tests/ns_057.phpt @@ -56,4 +56,7 @@ const ok class ok ok -Fatal error: Undefined constant 'Test\ns1\unknown' in %sns_057.php on line %d
\ No newline at end of file +Fatal error: Uncaught exception 'EngineException' with message 'Undefined constant 'Test\ns1\unknown'' in %sns_057.php:%d +Stack trace: +#0 {main} + thrown in %sns_057.php on line %d
\ No newline at end of file diff --git a/Zend/tests/ns_058.phpt b/Zend/tests/ns_058.phpt index 7a0cd97d92..b46c968ff4 100644 --- a/Zend/tests/ns_058.phpt +++ b/Zend/tests/ns_058.phpt @@ -54,4 +54,7 @@ const ok class ok ok -Fatal error: Undefined constant 'unknown' in %sns_058.php on line %d +Fatal error: Uncaught exception 'EngineException' with message 'Undefined constant 'unknown'' in %sns_058.php:%d +Stack trace: +#0 {main} + thrown in %sns_058.php on line %d diff --git a/Zend/tests/ns_076.phpt b/Zend/tests/ns_076.phpt index eeda39bd2e..ac4e519b8a 100644 --- a/Zend/tests/ns_076.phpt +++ b/Zend/tests/ns_076.phpt @@ -22,4 +22,7 @@ array(1) { %s(7) "unknown" } -Fatal error: Undefined constant 'unknown' in %sns_076.php on line %d +Fatal error: Uncaught exception 'EngineException' with message 'Undefined constant 'unknown'' in %sns_076.php:%d +Stack trace: +#0 {main} + thrown in %sns_076.php on line %d diff --git a/Zend/tests/ns_077_1.phpt b/Zend/tests/ns_077_1.phpt index 5a9c4b1539..ffe4a7d3a5 100644 --- a/Zend/tests/ns_077_1.phpt +++ b/Zend/tests/ns_077_1.phpt @@ -10,4 +10,8 @@ function foo($a = array(0 => \unknown)) foo(); --EXPECTF-- -Fatal error: Undefined constant 'unknown' in %sns_077_%d.php on line %d +Fatal error: Uncaught exception 'EngineException' with message 'Undefined constant 'unknown'' in %sns_077_%d.php:%d +Stack trace: +#0 %s(%d): foo\foo() +#1 {main} + thrown in %sns_077_%d.php on line %d diff --git a/Zend/tests/ns_077_2.phpt b/Zend/tests/ns_077_2.phpt index 8c26721855..c8c1b96399 100644 --- a/Zend/tests/ns_077_2.phpt +++ b/Zend/tests/ns_077_2.phpt @@ -10,4 +10,8 @@ function foo($a = array(\unknown => unknown)) foo(); --EXPECTF-- -Fatal error: Undefined constant 'unknown' in %sns_077_%d.php on line %d +Fatal error: Uncaught exception 'EngineException' with message 'Undefined constant 'unknown'' in %sns_077_%d.php:%d +Stack trace: +#0 %s(%d): foo\foo() +#1 {main} + thrown in %sns_077_%d.php on line %d diff --git a/Zend/tests/ns_077_3.phpt b/Zend/tests/ns_077_3.phpt index bdeb7924e6..ff53e793c2 100644 --- a/Zend/tests/ns_077_3.phpt +++ b/Zend/tests/ns_077_3.phpt @@ -10,4 +10,8 @@ function foo($a = array(namespace\unknown => unknown)) foo(); --EXPECTF-- -Fatal error: Undefined constant 'foo\unknown' in %sns_077_%d.php on line %d +Fatal error: Uncaught exception 'EngineException' with message 'Undefined constant 'foo\unknown'' in %sns_077_%d.php:%d +Stack trace: +#0 %s(%d): foo\foo() +#1 {main} + thrown in %sns_077_%d.php on line %d diff --git a/Zend/tests/ns_077_4.phpt b/Zend/tests/ns_077_4.phpt index aef91fd3e6..4b7f06dc9a 100644 --- a/Zend/tests/ns_077_4.phpt +++ b/Zend/tests/ns_077_4.phpt @@ -10,4 +10,8 @@ function foo($a = array(0 => namespace\unknown)) foo(); --EXPECTF-- -Fatal error: Undefined constant 'foo\unknown' in %sns_077_%d.php on line %d +Fatal error: Uncaught exception 'EngineException' with message 'Undefined constant 'foo\unknown'' in %sns_077_%d.php:%d +Stack trace: +#0 %s(%d): foo\foo() +#1 {main} + thrown in %sns_077_%d.php on line %d diff --git a/Zend/tests/ns_077_5.phpt b/Zend/tests/ns_077_5.phpt index 17afe03f4b..ade0983e1f 100644 --- a/Zend/tests/ns_077_5.phpt +++ b/Zend/tests/ns_077_5.phpt @@ -9,4 +9,8 @@ function foo($a = array(0 => \unknown)) foo(); --EXPECTF-- -Fatal error: Undefined constant 'unknown' in %sns_077_%d.php on line %d +Fatal error: Uncaught exception 'EngineException' with message 'Undefined constant 'unknown'' in %sns_077_%d.php:%d +Stack trace: +#0 %s(%d): foo() +#1 {main} + thrown in %sns_077_%d.php on line %d diff --git a/Zend/tests/ns_077_6.phpt b/Zend/tests/ns_077_6.phpt index 17afe03f4b..ade0983e1f 100644 --- a/Zend/tests/ns_077_6.phpt +++ b/Zend/tests/ns_077_6.phpt @@ -9,4 +9,8 @@ function foo($a = array(0 => \unknown)) foo(); --EXPECTF-- -Fatal error: Undefined constant 'unknown' in %sns_077_%d.php on line %d +Fatal error: Uncaught exception 'EngineException' with message 'Undefined constant 'unknown'' in %sns_077_%d.php:%d +Stack trace: +#0 %s(%d): foo() +#1 {main} + thrown in %sns_077_%d.php on line %d diff --git a/Zend/tests/ns_077_7.phpt b/Zend/tests/ns_077_7.phpt index 9bf5baf058..650eb07b63 100644 --- a/Zend/tests/ns_077_7.phpt +++ b/Zend/tests/ns_077_7.phpt @@ -9,4 +9,8 @@ function foo($a = array(0 => namespace\unknown)) foo(); --EXPECTF-- -Fatal error: Undefined constant 'unknown' in %sns_077_%d.php on line %d +Fatal error: Uncaught exception 'EngineException' with message 'Undefined constant 'unknown'' in %sns_077_%d.php:%d +Stack trace: +#0 %s(%d): foo() +#1 {main} + thrown in %sns_077_%d.php on line %d diff --git a/Zend/tests/ns_077_8.phpt b/Zend/tests/ns_077_8.phpt index 9f9240db07..34e9554164 100644 --- a/Zend/tests/ns_077_8.phpt +++ b/Zend/tests/ns_077_8.phpt @@ -9,4 +9,8 @@ function foo($a = array(namespace\unknown => unknown)) foo(); --EXPECTF-- -Fatal error: Undefined constant 'unknown' in %sns_077_%d.php on line %d +Fatal error: Uncaught exception 'EngineException' with message 'Undefined constant 'unknown'' in %sns_077_%d.php:%d +Stack trace: +#0 %s(%d): foo() +#1 {main} + thrown in %sns_077_%d.php on line %d diff --git a/Zend/tests/ns_092.phpt b/Zend/tests/ns_092.phpt index a5d1bcb6e9..ef0f5dacf9 100644 --- a/Zend/tests/ns_092.phpt +++ b/Zend/tests/ns_092.phpt @@ -64,4 +64,7 @@ Foo\Bar\fiz Foo\Bar\biz Foo\Bar\buz -Fatal error: Call to undefined function Foo\Bar\A() in %sns_092.php on line 45 +Fatal error: Uncaught exception 'EngineException' with message 'Call to undefined function Foo\Bar\A()' in %sns_092.php:45 +Stack trace: +#0 {main} + thrown in %sns_092.php on line 45 diff --git a/Zend/tests/objects_017.phpt b/Zend/tests/objects_017.phpt index 63030304ff..c07de71b73 100644 --- a/Zend/tests/objects_017.phpt +++ b/Zend/tests/objects_017.phpt @@ -15,4 +15,7 @@ test()->test = 2; ?> --EXPECTF-- -Fatal error: Cannot access private property foo::$test in %s on line %d +Fatal error: Uncaught exception 'EngineException' with message 'Cannot access private property foo::$test' in %s:%d +Stack trace: +#0 {main} + thrown in %s on line %d diff --git a/Zend/tests/objects_025.phpt b/Zend/tests/objects_025.phpt index 110ffc69b7..e2711bd417 100644 --- a/Zend/tests/objects_025.phpt +++ b/Zend/tests/objects_025.phpt @@ -43,4 +43,7 @@ static - ok non-static - ok static - ok -Fatal error: Method name must be a string in %s on line %d +Fatal error: Uncaught exception 'EngineException' with message 'Method name must be a string' in %s:%d +Stack trace: +#0 {main} + thrown in %s on line %d diff --git a/Zend/tests/objects_026.phpt b/Zend/tests/objects_026.phpt index eb3a89f678..e3bc411a46 100644 --- a/Zend/tests/objects_026.phpt +++ b/Zend/tests/objects_026.phpt @@ -10,4 +10,7 @@ try { ?> --EXPECTF-- -Fatal error: Using $this when not in object context in %s on line %d +Fatal error: Uncaught exception 'EngineException' with message 'Using $this when not in object context' in %s:%d +Stack trace: +#0 {main} + thrown in %s on line %d diff --git a/Zend/tests/objects_029.phpt b/Zend/tests/objects_029.phpt index 5e8de185f2..883785d75c 100644 --- a/Zend/tests/objects_029.phpt +++ b/Zend/tests/objects_029.phpt @@ -23,4 +23,8 @@ new foo; ?> --EXPECTF-- -Fatal error: Access to undeclared static property: foo::$f in %s on line %d +Fatal error: Uncaught exception 'EngineException' with message 'Access to undeclared static property: foo::$f' in %s:%d +Stack trace: +#0 %s(%d): foo->__construct() +#1 {main} + thrown in %s on line %d diff --git a/Zend/tests/objects_030.phpt b/Zend/tests/objects_030.phpt index 8b7cfe39a8..21e42cb247 100644 --- a/Zend/tests/objects_030.phpt +++ b/Zend/tests/objects_030.phpt @@ -23,4 +23,8 @@ new foo; ?> --EXPECTF-- -Fatal error: Access to undeclared static property: bar::$f in %s on line %d +Fatal error: Uncaught exception 'EngineException' with message 'Access to undeclared static property: bar::$f' in %s:%d +Stack trace: +#0 %s(%d): foo->__construct() +#1 {main} + thrown in %s on line %d diff --git a/Zend/tests/offset_assign.phpt b/Zend/tests/offset_assign.phpt index 721516f53c..ab547c8cd1 100644 --- a/Zend/tests/offset_assign.phpt +++ b/Zend/tests/offset_assign.phpt @@ -10,4 +10,7 @@ echo "Done\n"; --EXPECTF-- Warning: Illegal string offset 'x' in %soffset_assign.php on line %d -Fatal error: Cannot use string offset as an array in %soffset_assign.php on line %d +Fatal error: Uncaught exception 'EngineException' with message 'Cannot use string offset as an array' in %soffset_assign.php:%d +Stack trace: +#0 {main} + thrown in %soffset_assign.php on line %d diff --git a/Zend/tests/offset_object.phpt b/Zend/tests/offset_object.phpt index b570fd2a2f..4b9d9329a2 100644 --- a/Zend/tests/offset_object.phpt +++ b/Zend/tests/offset_object.phpt @@ -8,4 +8,7 @@ var_dump($object[1]); ?> --EXPECTF-- -Fatal error: Cannot use object of type stdClass as array in %s on line %d +Fatal error: Uncaught exception 'EngineException' with message 'Cannot use object of type stdClass as array' in %s:%d +Stack trace: +#0 {main} + thrown in %s on line %d diff --git a/Zend/tests/parent_class_name_without_parent.phpt b/Zend/tests/parent_class_name_without_parent.phpt index 0e67173f87..8cef8619e3 100644 --- a/Zend/tests/parent_class_name_without_parent.phpt +++ b/Zend/tests/parent_class_name_without_parent.phpt @@ -17,5 +17,9 @@ class C { ?> --EXPECTF-- -Fatal error: Cannot use "parent" when current class scope has no parent in %s on line 5 +Fatal error: Uncaught exception 'EngineException' with message 'Cannot use "parent" when current class scope has no parent' in %s:5 +Stack trace: +#0 %s(%d): C->f() +#1 {main} + thrown in %s on line 5 diff --git a/Zend/tests/str_offset_002.phpt b/Zend/tests/str_offset_002.phpt index 1c465e5bae..596a7c6eba 100644 --- a/Zend/tests/str_offset_002.phpt +++ b/Zend/tests/str_offset_002.phpt @@ -6,4 +6,7 @@ $a = "aaa"; $x = array(&$a[1]);
?>
--EXPECTF--
-Fatal error: Cannot create references to/from string offsets in %sstr_offset_002.php on line 3
+Fatal error: Uncaught exception 'EngineException' with message 'Cannot create references to/from string offsets' in %sstr_offset_002.php:3 +Stack trace: +#0 {main} + thrown in %sstr_offset_002.php on line 3
diff --git a/Zend/tests/sub_001.phpt b/Zend/tests/sub_001.phpt index a9438fdcde..bbfdaa7fa5 100644 --- a/Zend/tests/sub_001.phpt +++ b/Zend/tests/sub_001.phpt @@ -20,4 +20,7 @@ echo "Done\n"; --EXPECTF-- Exception: Unsupported operand types -Fatal error: Unsupported operand types in %s on line %d +Fatal error: Uncaught exception 'EngineException' with message 'Unsupported operand types' in %s:%d +Stack trace: +#0 {main} + thrown in %s on line %d diff --git a/Zend/tests/traits/bug60173.phpt b/Zend/tests/traits/bug60173.phpt index a28a1033a0..ddc667693b 100644 --- a/Zend/tests/traits/bug60173.phpt +++ b/Zend/tests/traits/bug60173.phpt @@ -9,4 +9,8 @@ $rc = new ReflectionClass('foo'); $rc->newInstance(); --EXPECTF-- -Fatal error: Cannot instantiate trait foo in %s on line %d +Fatal error: Uncaught exception 'EngineException' with message 'Cannot instantiate trait foo' in %s:%d +Stack trace: +#0 %s(%d): ReflectionClass->newInstance() +#1 {main} + thrown in %s on line %d diff --git a/Zend/tests/traits/bugs/alias01.phpt b/Zend/tests/traits/bugs/alias01.phpt index b60261efac..094948c273 100644 --- a/Zend/tests/traits/bugs/alias01.phpt +++ b/Zend/tests/traits/bugs/alias01.phpt @@ -23,4 +23,7 @@ T:m1 T:m1 T:m2 -Fatal error: Call to undefined method C1::a2() in %s on line %d +Fatal error: Uncaught exception 'EngineException' with message 'Call to undefined method C1::a2()' in %s:%d +Stack trace: +#0 {main} + thrown in %s on line %d diff --git a/Zend/tests/traits/error_007.phpt b/Zend/tests/traits/error_007.phpt index 82a6a2e941..92ff664174 100644 --- a/Zend/tests/traits/error_007.phpt +++ b/Zend/tests/traits/error_007.phpt @@ -10,4 +10,7 @@ new abc; ?> --EXPECTF-- -Fatal error: Cannot instantiate trait abc in %s on line %d +Fatal error: Uncaught exception 'EngineException' with message 'Cannot instantiate trait abc' in %s:%d +Stack trace: +#0 {main} + thrown in %s on line %d diff --git a/Zend/tests/traits/error_012.phpt b/Zend/tests/traits/error_012.phpt index b90e32ac84..8e631fd5cc 100644 --- a/Zend/tests/traits/error_012.phpt +++ b/Zend/tests/traits/error_012.phpt @@ -16,4 +16,7 @@ var_dump($x->test()); ?> --EXPECTF-- -Fatal error: Call to protected method bar::test() from context '' in %s on line %d +Fatal error: Uncaught exception 'EngineException' with message 'Call to protected method bar::test() from context ''' in %s:%d +Stack trace: +#0 {main} + thrown in %s on line %d diff --git a/Zend/tests/traits/language008a.phpt b/Zend/tests/traits/language008a.phpt index 5a12a4e74b..45164d550c 100644 --- a/Zend/tests/traits/language008a.phpt +++ b/Zend/tests/traits/language008a.phpt @@ -20,4 +20,7 @@ $o->sayHello(); ?> --EXPECTF-- -Fatal error: Call to protected method MyClass::sayHello() from context '' in %s on line %d
\ No newline at end of file +Fatal error: Uncaught exception 'EngineException' with message 'Call to protected method MyClass::sayHello() from context ''' in %s:%d +Stack trace: +#0 {main} + thrown in %s on line %d
\ No newline at end of file diff --git a/Zend/tests/traits/language008b.phpt b/Zend/tests/traits/language008b.phpt index 9abbdbeb0d..14e4ba8198 100644 --- a/Zend/tests/traits/language008b.phpt +++ b/Zend/tests/traits/language008b.phpt @@ -27,4 +27,7 @@ $o->sayHelloWorld(); ?> --EXPECTF-- Hello World!Hello World! -Fatal error: Call to private method MyClass::sayHelloWorld() from context '' in %s on line %d
\ No newline at end of file +Fatal error: Uncaught exception 'EngineException' with message 'Call to private method MyClass::sayHelloWorld() from context ''' in %s:%d +Stack trace: +#0 {main} + thrown in %s on line %d
\ No newline at end of file diff --git a/Zend/tests/use_const/no_global_fallback.phpt b/Zend/tests/use_const/no_global_fallback.phpt index 64e2a154ce..40978c17fb 100644 --- a/Zend/tests/use_const/no_global_fallback.phpt +++ b/Zend/tests/use_const/no_global_fallback.phpt @@ -10,4 +10,7 @@ var_dump(baz); ?> --EXPECTF-- -Fatal error: Undefined constant 'foo\bar\baz' in %s on line %d +Fatal error: Uncaught exception 'EngineException' with message 'Undefined constant 'foo\bar\baz'' in %s:%d +Stack trace: +#0 {main} + thrown in %s on line %d diff --git a/Zend/tests/use_function/no_global_fallback.phpt b/Zend/tests/use_function/no_global_fallback.phpt index 6597d0d301..45fc32c4da 100644 --- a/Zend/tests/use_function/no_global_fallback.phpt +++ b/Zend/tests/use_function/no_global_fallback.phpt @@ -10,4 +10,7 @@ var_dump(baz()); ?> --EXPECTF-- -Fatal error: Call to undefined function foo\bar\baz() in %s on line %d +Fatal error: Uncaught exception 'EngineException' with message 'Call to undefined function foo\bar\baz()' in %s:%d +Stack trace: +#0 {main} + thrown in %s on line %d diff --git a/Zend/tests/use_function/no_global_fallback2.phpt b/Zend/tests/use_function/no_global_fallback2.phpt index 5d012c10e5..24551e0089 100644 --- a/Zend/tests/use_function/no_global_fallback2.phpt +++ b/Zend/tests/use_function/no_global_fallback2.phpt @@ -15,4 +15,7 @@ namespace foo { ?> --EXPECTF-- -Fatal error: Call to undefined function bar\test() in %s on line %d +Fatal error: Uncaught exception 'EngineException' with message 'Call to undefined function bar\test()' in %s:%d +Stack trace: +#0 {main} + thrown in %s on line %d diff --git a/Zend/tests/varSyntax/method_call_on_string_literal.phpt b/Zend/tests/varSyntax/method_call_on_string_literal.phpt index 01ea5f2aea..93b51a2570 100644 --- a/Zend/tests/varSyntax/method_call_on_string_literal.phpt +++ b/Zend/tests/varSyntax/method_call_on_string_literal.phpt @@ -5,4 +5,7 @@ Method call on string literal "string"->length(); ?> --EXPECTF-- -Fatal error: Call to a member function length() on string in %s on line %d +Fatal error: Uncaught exception 'EngineException' with message 'Call to a member function length() on string' in %s:%d +Stack trace: +#0 {main} + thrown in %s on line %d diff --git a/Zend/tests/varSyntax/tempDimFetchByRefError.phpt b/Zend/tests/varSyntax/tempDimFetchByRefError.phpt index 492627302f..9421d8edc5 100644 --- a/Zend/tests/varSyntax/tempDimFetchByRefError.phpt +++ b/Zend/tests/varSyntax/tempDimFetchByRefError.phpt @@ -8,4 +8,7 @@ $fn([0, 1][0]); ?> --EXPECTF-- -Fatal error: Cannot use temporary expression in write context in %s on line %d +Fatal error: Uncaught exception 'EngineException' with message 'Cannot use temporary expression in write context' in %s:%d +Stack trace: +#0 {main} + thrown in %s on line %d diff --git a/Zend/tests/varSyntax/tempPropFetchByRefError.phpt b/Zend/tests/varSyntax/tempPropFetchByRefError.phpt index f8298a936d..8bcb9198e7 100644 --- a/Zend/tests/varSyntax/tempPropFetchByRefError.phpt +++ b/Zend/tests/varSyntax/tempPropFetchByRefError.phpt @@ -8,4 +8,7 @@ $fn([0, 1]->prop); ?> --EXPECTF-- -Fatal error: Cannot use temporary expression in write context in %s on line %d +Fatal error: Uncaught exception 'EngineException' with message 'Cannot use temporary expression in write context' in %s:%d +Stack trace: +#0 {main} + thrown in %s on line %d |