Skip to content

Commit 1559069

Browse files
committed
chore: ./scripts/dev/bless_tests.php tests/
1 parent 320db3b commit 1559069

File tree

85 files changed

+183
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

85 files changed

+183
-0
lines changed

tests/basic/timeout_variation_0.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,5 @@ while ($x) {
1919
never reached here
2020
--EXPECTF--
2121
Fatal error: Maximum execution time of 1 second exceeded in %s on line %d
22+
Stack trace:
23+
#0 {main}

tests/basic/timeout_variation_7.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,5 @@ for ($i = 0; $i < INF; $i++) {
1818
never reached here
1919
--EXPECTF--
2020
Fatal error: Maximum execution time of 1 second exceeded in %s on line %d
21+
Stack trace:
22+
#0 {main}

tests/basic/timeout_variation_8.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,5 @@ foreach (new InfiniteIterator(new ArrayIterator([1])) as $i) {
1616
never reached here
1717
--EXPECTF--
1818
Fatal error: Maximum execution time of 1 second exceeded in %s on line %d
19+
Stack trace:
20+
#0 {main}

tests/classes/__call_002.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,5 @@ class Test {
1111
?>
1212
--EXPECTF--
1313
Fatal error: Method Test::__call() must take exactly 2 arguments in %s__call_002.php on line %d
14+
Stack trace:
15+
#0 {main}

tests/classes/__set__get_002.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,5 @@ class Test {
1010
?>
1111
--EXPECTF--
1212
Fatal error: Method Test::__get() must take exactly 1 argument in %s__set__get_002.php on line %d
13+
Stack trace:
14+
#0 {main}

tests/classes/__set__get_003.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,5 @@ class Test {
1010
?>
1111
--EXPECTF--
1212
Fatal error: Method Test::__set() must take exactly 2 arguments in %s__set__get_003.php on line %d
13+
Stack trace:
14+
#0 {main}

tests/classes/abstract_by_interface_001.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,5 @@ object(Leaf)#%d (0) {
3131
}
3232

3333
Fatal error: Class Fails contains 1 abstract method and must therefore be declared abstract or implement the remaining method (MyInterface::MyInterfaceFunc) in %sabstract_by_interface_001.php on line %d
34+
Stack trace:
35+
#0 {main}

tests/classes/abstract_by_interface_002.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,5 @@ object(Leaf)#%d (0) {
3131
}
3232

3333
Fatal error: Class Fails contains 1 abstract method and must therefore be declared abstract or implement the remaining method (MyInterface::MyInterfaceFunc) in %sabstract_by_interface_002.php on line %d
34+
Stack trace:
35+
#0 {main}

tests/classes/abstract_derived.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,5 @@ class derived extends base {
1414
===DONE===
1515
--EXPECTF--
1616
Fatal error: Class derived declares abstract method show() and must therefore be declared abstract in %sabstract_derived.php on line %d
17+
Stack trace:
18+
#0 {main}

tests/classes/abstract_not_declared.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,5 @@ echo "Done\n"; // shouldn't be displayed
1111
?>
1212
--EXPECTF--
1313
Fatal error: Class fail declares abstract method show() and must therefore be declared abstract in %s on line %d
14+
Stack trace:
15+
#0 {main}

tests/classes/abstract_redeclare.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,5 @@ echo "Done\n"; // Shouldn't be displayed
1717
?>
1818
--EXPECTF--
1919
Fatal error: Class fail declares abstract method show() and must therefore be declared abstract in %sabstract_redeclare.php on line %d
20+
Stack trace:
21+
#0 {main}

tests/classes/abstract_static.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,5 @@ echo "Done\n"; // shouldn't be displayed
3232
Call to function show()
3333

3434
Fatal error: Class fail declares abstract method func() and must therefore be declared abstract in %sabstract_static.php(%d) : eval()'d code on line %d
35+
Stack trace:
36+
#0 {main}

tests/classes/bug29446.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,5 @@ $test = new testClass;
1717
?>
1818
--EXPECTF--
1919
Fatal error: Cannot redefine class constant testClass::TEST_CONST in %s on line 5
20+
Stack trace:
21+
#0 {main}

tests/classes/bug65768.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,5 @@ class cdt3 implements DateTimeInterface {}
3434
0 0 8 0 0 0
3535

3636
Fatal error: DateTimeInterface can't be implemented by user classes in %sbug65768.php on line %d
37+
Stack trace:
38+
#0 {main}

tests/classes/class_final.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,5 @@ echo "Done\n"; // shouldn't be displayed
1818
?>
1919
--EXPECTF--
2020
Fatal error: Class derived cannot extend final class base in %s on line %d
21+
Stack trace:
22+
#0 {main}

tests/classes/clone_005.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,5 @@ class test extends base {
1717
?>
1818
--EXPECTF--
1919
Fatal error: Cannot override final method base::__clone() in %sclone_005.php on line 11
20+
Stack trace:
21+
#0 {main}

tests/classes/constants_error_001.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,5 @@ Error case: duplicate class constant definition
1010
?>
1111
--EXPECTF--
1212
Fatal error: Cannot redefine class constant myclass::myConst in %s on line 5
13+
Stack trace:
14+
#0 {main}

tests/classes/constants_error_005.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,5 @@ Error case: class constant as an encapsed containing a variable
99
?>
1010
--EXPECTF--
1111
Fatal error: Constant expression contains invalid operations in %s on line %d
12+
Stack trace:
13+
#0 {main}

tests/classes/constants_visibility_error_003.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,5 @@ class B extends A {
1313
?>
1414
--EXPECTF--
1515
Fatal error: Access level to B::publicConst must be public (as in class A) in %s on line 7
16+
Stack trace:
17+
#0 {main}

tests/classes/constants_visibility_error_004.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,5 @@ class B extends A {
1313
?>
1414
--EXPECTF--
1515
Fatal error: Access level to B::protectedConst must be protected (as in class A) or weaker in %s on line 7
16+
Stack trace:
17+
#0 {main}

tests/classes/ctor_in_interface_01.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,5 @@ class implem implements constr
1717
?>
1818
--EXPECTF--
1919
Fatal error: Declaration of implem::__construct($a) must be compatible with constr::__construct() in %s on line %d
20+
Stack trace:
21+
#0 {main}

tests/classes/ctor_in_interface_02.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,5 @@ class implem13 implements constr1, constr3
3232
?>
3333
--EXPECTF--
3434
Fatal error: Declaration of implem13::__construct() must be compatible with constr3::__construct($a) in %s on line %d
35+
Stack trace:
36+
#0 {main}

tests/classes/ctor_in_interface_03.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,5 @@ class derived extends implem
2121
?>
2222
--EXPECTF--
2323
Fatal error: Declaration of derived::__construct($a) must be compatible with constr::__construct() in %s on line %d
24+
Stack trace:
25+
#0 {main}

tests/classes/ctor_in_interface_04.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,5 @@ class derived extends implem
2424
?>
2525
--EXPECTF--
2626
Fatal error: Declaration of derived::__construct($a) must be compatible with constr::__construct() in %s on line %d
27+
Stack trace:
28+
#0 {main}

tests/classes/final_ctor1.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,5 @@ class Extended extends Base
2424
?>
2525
--EXPECTF--
2626
Fatal error: Cannot override final method Base::__construct() in %s on line %d
27+
Stack trace:
28+
#0 {main}

tests/classes/final_private_ctor.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,5 @@ class Extended extends Base
1919
?>
2020
--EXPECTF--
2121
Fatal error: Cannot override final method Base::__construct() in %s on line %d
22+
Stack trace:
23+
#0 {main}

tests/classes/final_redeclare.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,5 @@ echo "Done\n"; // Shouldn't be displayed
2121
?>
2222
--EXPECTF--
2323
Fatal error: Cannot override final method pass::show() in %s on line 12
24+
Stack trace:
25+
#0 {main}

tests/classes/inheritance_003.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,5 @@ class B extends A
1616
?>
1717
--EXPECTF--
1818
Fatal error: Declaration of B::f() must be compatible with A::f($x) in %sinheritance_003.php on line %d
19+
Stack trace:
20+
#0 {main}

tests/classes/inheritance_004.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,5 @@ class B extends A
1616
?>
1717
--EXPECTF--
1818
Fatal error: Declaration of B::f($x) must be compatible with A::f() in %sinheritance_004.php on line %d
19+
Stack trace:
20+
#0 {main}

tests/classes/interface_and_extends.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,5 @@ $o->show();
2222
===DONE===
2323
--EXPECTF--
2424
Fatal error: Class Tester cannot extend interface Test in %sinterface_and_extends.php on line %d
25+
Stack trace:
26+
#0 {main}

tests/classes/interface_class.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,5 @@ class derived implements base {
1010
?>
1111
--EXPECTF--
1212
Fatal error: derived cannot implement base - it is not an interface in %s on line %d
13+
Stack trace:
14+
#0 {main}

tests/classes/interface_constant_inheritance_006.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,5 @@ interface A {
88
?>
99
--EXPECTF--
1010
Fatal error: Access type for interface constant A::FOO must be public in %s on line 3
11+
Stack trace:
12+
#0 {main}

tests/classes/interface_constant_inheritance_007.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,5 @@ interface A {
88
?>
99
--EXPECTF--
1010
Fatal error: Access type for interface constant A::FOO must be public in %s on line 3
11+
Stack trace:
12+
#0 {main}

tests/classes/interface_member.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,5 @@ interface if_a {
99
?>
1010
--EXPECTF--
1111
Fatal error: Interfaces may only include hooked properties in %s on line %d
12+
Stack trace:
13+
#0 {main}

tests/classes/interface_method.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,5 @@ interface if_a {
1010
?>
1111
--EXPECTF--
1212
Fatal error: Interface function if_a::err() cannot contain body %s on line %d
13+
Stack trace:
14+
#0 {main}

tests/classes/interface_method_private.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,5 @@ interface if_a {
1010
?>
1111
--EXPECTF--
1212
Fatal error: Access type for interface method if_a::err() must be public in %s on line %d
13+
Stack trace:
14+
#0 {main}

tests/classes/interface_must_be_implemented.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,5 @@ class derived_a implements if_a {
1313
?>
1414
--EXPECTF--
1515
Fatal error: Class derived_a contains 1 abstract method and must therefore be declared abstract or implement the remaining method (if_a::f_a) in %s on line %d
16+
Stack trace:
17+
#0 {main}

tests/classes/interfaces_002.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,5 @@ echo "Message: " . $foo->getMessage() . "\n";
2424
===DONE===
2525
--EXPECTF--
2626
Fatal error: Class Exception_foo contains 1 abstract method and must therefore be declared abstract or implement the remaining method (ThrowableInterface::getErrno) in %s on line %d
27+
Stack trace:
28+
#0 {main}

tests/classes/iterators_005.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,5 @@ print "Done\n";
1515
?>
1616
--EXPECTF--
1717
Fatal error: Class test must implement interface Traversable as part of either Iterator or IteratorAggregate in %s on line %d
18+
Stack trace:
19+
#0 {main}

tests/classes/method_override_optional_arg_001.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,5 @@ $b->foo(1);
2727
?>
2828
--EXPECTF--
2929
Fatal error: Declaration of C::foo() must be compatible with A::foo($arg1 = 1) in %s on line %d
30+
Stack trace:
31+
#0 {main}

tests/classes/method_override_optional_arg_002.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,5 @@ $b->foo();
1919
?>
2020
--EXPECTF--
2121
Fatal error: Declaration of B::foo() must be compatible with A::foo($arg = 1) in %s on line %d
22+
Stack trace:
23+
#0 {main}

tests/classes/property_override_protectedStatic_private.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,5 @@ Redeclare inherited protected static property as private.
2929
?>
3030
--EXPECTF--
3131
Fatal error: Cannot redeclare static A::$p as non static B::$p in %s on line 11
32+
Stack trace:
33+
#0 {main}

tests/classes/property_override_protectedStatic_privateStatic.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,5 @@ Redeclare inherited protected static property as private static.
2828
?>
2929
--EXPECTF--
3030
Fatal error: Access level to B::$p must be protected (as in class A) or weaker in %s on line 11
31+
Stack trace:
32+
#0 {main}

tests/classes/property_override_protectedStatic_protected.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,5 @@ Redeclare inherited protected static property as protected.
2929
?>
3030
--EXPECTF--
3131
Fatal error: Cannot redeclare static A::$p as non static B::$p in %s on line 11
32+
Stack trace:
33+
#0 {main}

tests/classes/property_override_protectedStatic_public.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,5 @@ Redeclare inherited protected static property as public.
2929
?>
3030
--EXPECTF--
3131
Fatal error: Cannot redeclare static A::$p as non static B::$p in %s on line 11
32+
Stack trace:
33+
#0 {main}

tests/classes/property_override_protected_private.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,5 @@ Redeclare inherited protected property as private (duplicates Zend/tests/errmsg_
3030
?>
3131
--EXPECTF--
3232
Fatal error: Access level to B::$p must be protected (as in class A) or weaker in %s on line 11
33+
Stack trace:
34+
#0 {main}

tests/classes/property_override_protected_privateStatic.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,5 @@ Redeclare inherited protected property as private static.
3030
?>
3131
--EXPECTF--
3232
Fatal error: Cannot redeclare non static A::$p as static B::$p in %s on line 11
33+
Stack trace:
34+
#0 {main}

tests/classes/property_override_protected_protectedStatic.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,5 @@ Redeclare inherited protected property as protected static.
3030
?>
3131
--EXPECTF--
3232
Fatal error: Cannot redeclare non static A::$p as static B::$p in %s on line 11
33+
Stack trace:
34+
#0 {main}

tests/classes/property_override_protected_publicStatic.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,5 @@ Redeclare inherited protected property as public static.
3030
?>
3131
--EXPECTF--
3232
Fatal error: Cannot redeclare non static A::$p as static B::$p in %s on line 11
33+
Stack trace:
34+
#0 {main}

tests/classes/property_override_publicStatic_private.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,5 @@ Redeclare inherited public static property as private.
2929
?>
3030
--EXPECTF--
3131
Fatal error: Cannot redeclare static A::$p as non static B::$p in %s on line 11
32+
Stack trace:
33+
#0 {main}

tests/classes/property_override_publicStatic_privateStatic.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,5 @@ Redeclare inherited public static property as private static.
2828
?>
2929
--EXPECTF--
3030
Fatal error: Access level to B::$p must be public (as in class A) in %s on line 11
31+
Stack trace:
32+
#0 {main}

tests/classes/property_override_publicStatic_protected.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,5 @@ Redeclare inherited public static property as protected.
2929
?>
3030
--EXPECTF--
3131
Fatal error: Cannot redeclare static A::$p as non static B::$p in %s on line 11
32+
Stack trace:
33+
#0 {main}

tests/classes/property_override_publicStatic_protectedStatic.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,5 @@ Redeclare inherited public static property as protected static.
2828
?>
2929
--EXPECTF--
3030
Fatal error: Access level to B::$p must be public (as in class A) in %s on line 11
31+
Stack trace:
32+
#0 {main}

tests/classes/property_override_publicStatic_public.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,5 @@ Redeclare inherited public static property as public.
2929
?>
3030
--EXPECTF--
3131
Fatal error: Cannot redeclare static A::$p as non static B::$p in %s on line 11
32+
Stack trace:
33+
#0 {main}

tests/classes/property_override_public_private.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,5 @@ Redeclare inherited public property as private.
3030
?>
3131
--EXPECTF--
3232
Fatal error: Access level to B::$p must be public (as in class A) in %s on line 11
33+
Stack trace:
34+
#0 {main}

tests/classes/property_override_public_privateStatic.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,5 @@ Redeclare inherited public property as private static.
3030
?>
3131
--EXPECTF--
3232
Fatal error: Cannot redeclare non static A::$p as static B::$p in %s on line 11
33+
Stack trace:
34+
#0 {main}

tests/classes/property_override_public_protected.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,5 @@ Redeclare inherited public property as protected.
3030
?>
3131
--EXPECTF--
3232
Fatal error: Access level to B::$p must be public (as in class A) in %s on line 11
33+
Stack trace:
34+
#0 {main}

tests/classes/property_override_public_protectedStatic.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,5 @@ Redeclare inherited public property as protected static.
3030
?>
3131
--EXPECTF--
3232
Fatal error: Cannot redeclare non static A::$p as static B::$p in %s on line 11
33+
Stack trace:
34+
#0 {main}

tests/classes/property_override_public_publicStatic.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,5 @@ Redeclare inherited public property as public static.
3030
?>
3131
--EXPECTF--
3232
Fatal error: Cannot redeclare non static A::$p as static B::$p in %s on line 11
33+
Stack trace:
34+
#0 {main}

tests/classes/static_mix_1.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,5 @@ echo "Done\n"; // shouldn't be displayed
2222
?>
2323
--EXPECTF--
2424
Fatal error: Cannot make static method pass::show() non static in class fail in %s on line 10
25+
Stack trace:
26+
#0 {main}

tests/classes/static_mix_2.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,5 @@ echo "Done\n"; // shouldn't be displayed
2323
?>
2424
--EXPECTF--
2525
Fatal error: Cannot make non static method pass::show() static in class fail in %s on line 10
26+
Stack trace:
27+
#0 {main}

tests/classes/static_this.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,5 @@ TestClass::Test2(new stdClass);
2929
===DONE===
3030
--EXPECTF--
3131
Fatal error: Cannot use $this as parameter in %sstatic_this.php on line 16
32+
Stack trace:
33+
#0 {main}

tests/classes/this.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,5 @@ print $other->prop; // shows 'Hello'
5050
===DONE===
5151
--EXPECTF--
5252
Fatal error: Cannot re-assign $this in %sthis.php on line %d
53+
Stack trace:
54+
#0 {main}

tests/classes/type_hinting_005a.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,5 @@ Class D2 extends C { function f(SomeClass $a) {} }
1212
?>
1313
--EXPECTF--
1414
Fatal error: Declaration of D2::f(SomeClass $a) must be compatible with C::f(array $a) in %s on line 8
15+
Stack trace:
16+
#0 {main}

tests/classes/type_hinting_005c.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,5 @@ Class D extends C { function f(array $a) {} }
99
?>
1010
--EXPECTF--
1111
Fatal error: Declaration of D::f(array $a) must be compatible with C::f(SomeClass $a) in %s on line 5
12+
Stack trace:
13+
#0 {main}

tests/classes/type_hinting_005d.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,5 @@ Class D extends C { function f(array $a) {} }
99
?>
1010
--EXPECTF--
1111
Fatal error: Declaration of D::f(array $a) must be compatible with C::f($a) in %s on line 5
12+
Stack trace:
13+
#0 {main}

0 commit comments

Comments
 (0)