diff options
Diffstat (limited to 'Zend/tests')
402 files changed, 402 insertions, 4 deletions
diff --git a/Zend/tests/022.phpt b/Zend/tests/022.phpt index d2b4075627..43353c3a01 100644 --- a/Zend/tests/022.phpt +++ b/Zend/tests/022.phpt @@ -19,6 +19,7 @@ class Ext extends Base $a = new Ext(); $a->someMethod("foo"); $a->someMethod(); +?> --EXPECT-- foo default diff --git a/Zend/tests/anon/001.phpt b/Zend/tests/anon/001.phpt index 65ba15148b..8d7cff9fef 100644 --- a/Zend/tests/anon/001.phpt +++ b/Zend/tests/anon/001.phpt @@ -3,6 +3,7 @@ declare bare anonymous class --FILE-- <?php var_dump(new class{}); +?> --EXPECTF-- object(class@%s)#%d (0) { } diff --git a/Zend/tests/anon/002.phpt b/Zend/tests/anon/002.phpt index 80a91eed78..e29f7da27b 100644 --- a/Zend/tests/anon/002.phpt +++ b/Zend/tests/anon/002.phpt @@ -15,6 +15,7 @@ $a = new class extends A implements B { }; var_dump($a instanceof A, $a instanceof B); +?> --EXPECT-- bool(true) bool(true) diff --git a/Zend/tests/anon/003.phpt b/Zend/tests/anon/003.phpt index 7c95e86632..e4c3f7cc03 100644 --- a/Zend/tests/anon/003.phpt +++ b/Zend/tests/anon/003.phpt @@ -10,6 +10,7 @@ while (@$i++<10) { } }); } +?> --EXPECTF-- object(class@%s)#1 (1) { ["i"]=> diff --git a/Zend/tests/anon/004.phpt b/Zend/tests/anon/004.phpt index f72e7255de..8751bceb8c 100644 --- a/Zend/tests/anon/004.phpt +++ b/Zend/tests/anon/004.phpt @@ -26,5 +26,6 @@ $outer = new Outer(array( /* not null because inheritance */ var_dump($outer->getArrayAccess()[0]); +?> --EXPECTF-- int(%d) diff --git a/Zend/tests/anon/005.phpt b/Zend/tests/anon/005.phpt index 7f1ff0755a..215666d23e 100644 --- a/Zend/tests/anon/005.phpt +++ b/Zend/tests/anon/005.phpt @@ -32,5 +32,6 @@ $proxy = $outer->getArrayAccess(); /* null because no inheritance, so no access to protected member */ var_dump(@$outer->getArrayAccess()[0]); +?> --EXPECT-- NULL diff --git a/Zend/tests/anon/006.phpt b/Zend/tests/anon/006.phpt index 0be1c33317..6bcd252dfc 100644 --- a/Zend/tests/anon/006.phpt +++ b/Zend/tests/anon/006.phpt @@ -9,6 +9,7 @@ namespace lone { namespace { var_dump ($hello); } +?> --EXPECTF-- object(class@%s)#1 (0) { } diff --git a/Zend/tests/anon/007.phpt b/Zend/tests/anon/007.phpt index dbc86c593e..166444b64f 100644 --- a/Zend/tests/anon/007.phpt +++ b/Zend/tests/anon/007.phpt @@ -17,6 +17,7 @@ namespace lone { new Outer(); } +?> --EXPECTF-- object(class@%s)#2 (0) { } diff --git a/Zend/tests/anon/008.phpt b/Zend/tests/anon/008.phpt index 315163ca5f..94620f6569 100644 --- a/Zend/tests/anon/008.phpt +++ b/Zend/tests/anon/008.phpt @@ -18,6 +18,7 @@ $anonClass = new class("cats", "dogs") { var_dump($anonClass::$foo); var_dump($anonClass::getBar()); +?> --EXPECT-- string(4) "cats" string(4) "dogs" diff --git a/Zend/tests/anon/009.phpt b/Zend/tests/anon/009.phpt index 4a67cdd30d..b7bf254058 100644 --- a/Zend/tests/anon/009.phpt +++ b/Zend/tests/anon/009.phpt @@ -14,5 +14,6 @@ $anonClass = new class { }; var_dump($anonClass->someMethod()); +?> --EXPECT-- string(3) "bar" diff --git a/Zend/tests/array_unpack/basic.phpt b/Zend/tests/array_unpack/basic.phpt index dece3b8265..6d7c803dd7 100644 --- a/Zend/tests/array_unpack/basic.phpt +++ b/Zend/tests/array_unpack/basic.phpt @@ -24,6 +24,7 @@ var_dump([...new ArrayIterator(['a', 'b', 'c'])]); var_dump([0, ...$array, ...getArr(), 6, 7, 8, 9, 10, ...arrGen()]); var_dump([0, ...$array, ...$array, 'end']); +?> --EXPECT-- array(0) { } diff --git a/Zend/tests/array_unpack/classes.phpt b/Zend/tests/array_unpack/classes.phpt index 9636058055..fa4b0f8e53 100644 --- a/Zend/tests/array_unpack/classes.phpt +++ b/Zend/tests/array_unpack/classes.phpt @@ -22,6 +22,7 @@ try { } catch (Error $ex) { echo "Exception: " . $ex->getMessage() . "\n"; } +?> --EXPECT-- array(5) { [0]=> diff --git a/Zend/tests/array_unpack/non_integer_keys.phpt b/Zend/tests/array_unpack/non_integer_keys.phpt index 0e082e71f3..a5e407743c 100644 --- a/Zend/tests/array_unpack/non_integer_keys.phpt +++ b/Zend/tests/array_unpack/non_integer_keys.phpt @@ -13,5 +13,6 @@ try { echo "Exception: " . $ex->getMessage() . "\n"; } +?> --EXPECT-- Exception: Cannot unpack Traversable with non-integer keys diff --git a/Zend/tests/array_unpack/ref1.phpt b/Zend/tests/array_unpack/ref1.phpt index a43e2fa09f..2f0966ae2d 100644 --- a/Zend/tests/array_unpack/ref1.phpt +++ b/Zend/tests/array_unpack/ref1.phpt @@ -10,6 +10,7 @@ unset($a); //array (0 => (refcount=1, is_ref=1)=1) var_dump([...$b]); //array (0 => (refcount=0, is_ref=0)=1) +?> --EXPECT-- array(1) { [0]=> diff --git a/Zend/tests/array_unpack/string_keys.phpt b/Zend/tests/array_unpack/string_keys.phpt index c06a2b4b8b..e4cfd77f58 100644 --- a/Zend/tests/array_unpack/string_keys.phpt +++ b/Zend/tests/array_unpack/string_keys.phpt @@ -16,6 +16,7 @@ try { var_dump($ex->getMessage()); } +?> --EXPECT-- string(36) "Cannot unpack array with string keys" string(42) "Cannot unpack Traversable with string keys" diff --git a/Zend/tests/array_unpack/undef_var.phpt b/Zend/tests/array_unpack/undef_var.phpt index ce02fd3e6c..32b8989a26 100644 --- a/Zend/tests/array_unpack/undef_var.phpt +++ b/Zend/tests/array_unpack/undef_var.phpt @@ -5,6 +5,7 @@ array unpacking with undefinded variable var_dump([...$arr]); +?> --EXPECTF-- Warning: Undefined variable $arr in %s on line %d diff --git a/Zend/tests/ast/zend-pow-assign.phpt b/Zend/tests/ast/zend-pow-assign.phpt index cae9420539..c471c34960 100644 --- a/Zend/tests/ast/zend-pow-assign.phpt +++ b/Zend/tests/ast/zend-pow-assign.phpt @@ -8,5 +8,6 @@ assert.exception=0 assert_options(ASSERT_WARNING); assert(false && ($a **= 2)); +?> --EXPECTF-- Warning: assert(): assert(false && ($a **= 2)) failed in %s%ezend-pow-assign.php on line %d diff --git a/Zend/tests/ast_serialize_backtick_literal.phpt b/Zend/tests/ast_serialize_backtick_literal.phpt index a757a1db2e..0465abac33 100644 --- a/Zend/tests/ast_serialize_backtick_literal.phpt +++ b/Zend/tests/ast_serialize_backtick_literal.phpt @@ -8,5 +8,6 @@ assert.exception=0 assert_options(ASSERT_WARNING); assert(false && `echo -n ""`); +?> --EXPECTF-- Warning: assert(): assert(false && `echo -n ""`) failed in %s%east_serialize_backtick_literal.php on line %d diff --git a/Zend/tests/attributes/007_self_reflect_attribute.phpt b/Zend/tests/attributes/007_self_reflect_attribute.phpt index 032b66595f..b95542f87e 100644 --- a/Zend/tests/attributes/007_self_reflect_attribute.phpt +++ b/Zend/tests/attributes/007_self_reflect_attribute.phpt @@ -14,6 +14,7 @@ foreach ($attributes as $attribute) { var_dump(get_class($a)); var_dump($a->flags == Attribute::TARGET_ALL); } +?> --EXPECT-- string(9) "Attribute" array(0) { diff --git a/Zend/tests/attributes/008_wrong_attribution.phpt b/Zend/tests/attributes/008_wrong_attribution.phpt index 21ea9783d1..5a3ec54a6f 100644 --- a/Zend/tests/attributes/008_wrong_attribution.phpt +++ b/Zend/tests/attributes/008_wrong_attribution.phpt @@ -5,5 +5,6 @@ Attributes: Prevent Attribute on non classes @@Attribute function foo() {} +?> --EXPECTF-- Fatal error: Attribute "Attribute" cannot target function (allowed targets: class) in %s diff --git a/Zend/tests/attributes/016_custom_attribute_validation.phpt b/Zend/tests/attributes/016_custom_attribute_validation.phpt index 6095d390d9..9971085274 100644 --- a/Zend/tests/attributes/016_custom_attribute_validation.phpt +++ b/Zend/tests/attributes/016_custom_attribute_validation.phpt @@ -11,5 +11,6 @@ if (!extension_loaded('zend-test')) { @@ZendTestAttribute function foo() { } +?> --EXPECTF-- Fatal error: Only classes can be marked with @@ZendTestAttribute in %s diff --git a/Zend/tests/binary-32bit.phpt b/Zend/tests/binary-32bit.phpt index c66e863eb5..b102d22bff 100644 --- a/Zend/tests/binary-32bit.phpt +++ b/Zend/tests/binary-32bit.phpt @@ -77,6 +77,7 @@ var_dump(-0b11111111111111111111111111111111); var_dump(-0b1111111111111111111111111111111); var_dump(-0b111111111111111111111111111111); var_dump(-0b1); +?> --EXPECT-- int(1) int(3) diff --git a/Zend/tests/binary.phpt b/Zend/tests/binary.phpt index 2dcbf18413..d981c38f75 100644 --- a/Zend/tests/binary.phpt +++ b/Zend/tests/binary.phpt @@ -79,6 +79,7 @@ var_dump(-0b1111111111111111111111111111111111111111111111111111111111111111); var_dump(-0b111111111111111111111111111111111111111111111111111111111111111); var_dump(-0b11111111111111111111111111111111111111111111111111111111111111); var_dump(-0b1); +?> --EXPECT-- int(1) int(3) diff --git a/Zend/tests/bug31177-2.phpt b/Zend/tests/bug31177-2.phpt index 6cba62cedf..182e222973 100644 --- a/Zend/tests/bug31177-2.phpt +++ b/Zend/tests/bug31177-2.phpt @@ -13,6 +13,7 @@ try { } catch (Exception $e) { var_dump($x); } +?> --EXPECT-- object(foo)#1 (0) { } diff --git a/Zend/tests/bug37251.phpt b/Zend/tests/bug37251.phpt index d790c46dca..46f00ba770 100644 --- a/Zend/tests/bug37251.phpt +++ b/Zend/tests/bug37251.phpt @@ -13,5 +13,6 @@ try { } catch (Error $e) { echo 'OK'; } +?> --EXPECT-- OK diff --git a/Zend/tests/bug37715.phpt b/Zend/tests/bug37715.phpt index a585c78e5b..764dc1f5f1 100644 --- a/Zend/tests/bug37715.phpt +++ b/Zend/tests/bug37715.phpt @@ -24,6 +24,7 @@ foreach($a as $k => $d) } // Alternatively $c = $a; and foreachloop removal will cause identical results. var_dump(key($a['b'])); +?> --EXPECT-- int(3) int(3) diff --git a/Zend/tests/bug38772.phpt b/Zend/tests/bug38772.phpt index b4de5f10c4..9633f2a692 100644 --- a/Zend/tests/bug38772.phpt +++ b/Zend/tests/bug38772.phpt @@ -35,6 +35,7 @@ $a = new A(); $b = new B(); $c = new C(); $d = new D(); +?> --EXPECT-- A::foo A::foo diff --git a/Zend/tests/bug40509.phpt b/Zend/tests/bug40509.phpt index 473e5cb43a..7436934583 100644 --- a/Zend/tests/bug40509.phpt +++ b/Zend/tests/bug40509.phpt @@ -19,6 +19,7 @@ foreach ($arr["v"] as $k => $v) { var_dump($k); } var_dump(key($arr["v"])); +?> --EXPECT-- int(0) int(0) diff --git a/Zend/tests/bug40705.phpt b/Zend/tests/bug40705.phpt index 3a11637fec..959fac10f4 100644 --- a/Zend/tests/bug40705.phpt +++ b/Zend/tests/bug40705.phpt @@ -17,6 +17,7 @@ foreach ($foo as $k => $v) { var_dump($k); } var_dump(key($foo)); +?> --EXPECT-- int(0) int(0) diff --git a/Zend/tests/bug41401.phpt b/Zend/tests/bug41401.phpt index 096091e439..69da880be5 100644 --- a/Zend/tests/bug41401.phpt +++ b/Zend/tests/bug41401.phpt @@ -5,6 +5,7 @@ Bug #41401 (wrong precedence for unary minus) echo 1/-2*5; echo "\n"; echo 6/+2*-3; +?> --EXPECT-- -2.5 -9 diff --git a/Zend/tests/bug41640.phpt b/Zend/tests/bug41640.phpt index c859d90850..5bfc6f3472 100644 --- a/Zend/tests/bug41640.phpt +++ b/Zend/tests/bug41640.phpt @@ -8,6 +8,7 @@ class foo { } var_dump(get_class_vars("foo")); +?> --EXPECT-- array(1) { ["x"]=> diff --git a/Zend/tests/bug42211.phpt b/Zend/tests/bug42211.phpt index c6ea10652a..e331cf2e1e 100644 --- a/Zend/tests/bug42211.phpt +++ b/Zend/tests/bug42211.phpt @@ -20,6 +20,7 @@ $a = new A(); $a->foo(); $b = new B(); $b->foo(); +?> --EXPECT-- bool(true) bool(true) diff --git a/Zend/tests/bug42798.phpt b/Zend/tests/bug42798.phpt index 1141a30503..5f19fe3080 100644 --- a/Zend/tests/bug42798.phpt +++ b/Zend/tests/bug42798.phpt @@ -11,5 +11,6 @@ function foo($c = ok::constant) { } foo(); +?> --EXPECT-- ok diff --git a/Zend/tests/bug42802.phpt b/Zend/tests/bug42802.phpt index 375d7f6b5b..ec6c585e6e 100644 --- a/Zend/tests/bug42802.phpt +++ b/Zend/tests/bug42802.phpt @@ -31,6 +31,7 @@ test2($x); test3($x); test4($y); test5($x); +?> --EXPECTF-- ok ok diff --git a/Zend/tests/bug42820.phpt b/Zend/tests/bug42820.phpt index af9230be10..0c2b85044d 100644 --- a/Zend/tests/bug42820.phpt +++ b/Zend/tests/bug42820.phpt @@ -17,6 +17,7 @@ var_dump(defined('\\ns\\foo::ok')); var_dump(defined('\\ns\\foo::bug')); var_dump(defined('ns\\bar::bug')); var_dump(defined('\\ns\\bar::bug')); +?> --EXPECT-- bool(true) bool(false) diff --git a/Zend/tests/bug43183.phpt b/Zend/tests/bug43183.phpt index 88641e862a..b09feefabc 100644 --- a/Zend/tests/bug43183.phpt +++ b/Zend/tests/bug43183.phpt @@ -8,5 +8,6 @@ class Foo {} class Bar {} use Test\Bar; echo "ok\n"; +?> --EXPECT-- ok diff --git a/Zend/tests/bug43332_1.phpt b/Zend/tests/bug43332_1.phpt index 3b999646b5..35d817c985 100644 --- a/Zend/tests/bug43332_1.phpt +++ b/Zend/tests/bug43332_1.phpt @@ -11,6 +11,7 @@ class foo { $foo = new foo; $foo->bar($foo); // Ok! $foo->bar(new \stdclass); // Error, ok! +?> --EXPECTF-- Fatal error: Uncaught TypeError: foobar\foo::bar(): Argument #1 ($a) must be of type foobar\foo, stdClass given, called in %s:%d Stack trace: diff --git a/Zend/tests/bug43332_2.phpt b/Zend/tests/bug43332_2.phpt index b8adef3b13..604479e606 100644 --- a/Zend/tests/bug43332_2.phpt +++ b/Zend/tests/bug43332_2.phpt @@ -11,5 +11,6 @@ class foo { $foo = new foo; $foo->bar($foo); // Ok! $foo->bar(new stdclass); // Error, ok! +?> --EXPECTF-- Fatal error: '\self' is an invalid class name in %sbug43332_2.php on line 5 diff --git a/Zend/tests/bug43651.phpt b/Zend/tests/bug43651.phpt index ea70cf1039..a822bd4589 100644 --- a/Zend/tests/bug43651.phpt +++ b/Zend/tests/bug43651.phpt @@ -22,6 +22,7 @@ var_dump(is_callable("Test::foo")); var_dump(is_callable("\\Test::foo")); var_dump(is_callable("is_string")); var_dump(is_callable("\\is_string")); +?> --EXPECT-- bool(false) bool(false) diff --git a/Zend/tests/bug44141.phpt b/Zend/tests/bug44141.phpt index 814dd3c0d6..b9214559c9 100644 --- a/Zend/tests/bug44141.phpt +++ b/Zend/tests/bug44141.phpt @@ -21,6 +21,7 @@ class Y extends X $y = Y::cheat(5); echo $y->x, PHP_EOL; +?> --EXPECTF-- Fatal error: Uncaught Error: Call to private X::__construct() from scope Y in %s:%d Stack trace: diff --git a/Zend/tests/bug45744.phpt b/Zend/tests/bug45744.phpt index 0984b8591d..06d2eb929c 100644 --- a/Zend/tests/bug45744.phpt +++ b/Zend/tests/bug45744.phpt @@ -33,6 +33,7 @@ class Bar2 extends Foo2 { } new Bar2(array()); +?> --EXPECT-- array(0) { } diff --git a/Zend/tests/bug49866.phpt b/Zend/tests/bug49866.phpt index 0b7c224c01..f1df42d5c2 100644 --- a/Zend/tests/bug49866.phpt +++ b/Zend/tests/bug49866.phpt @@ -6,6 +6,7 @@ $a = "string"; $b = &$a[1]; $b = "f"; echo $a; +?> --EXPECTF-- Fatal error: Uncaught Error: Cannot create references to/from string offsets in %sbug49866.php:3 Stack trace: diff --git a/Zend/tests/bug50394.phpt b/Zend/tests/bug50394.phpt index e3beb2a2e4..ef8b79828d 100644 --- a/Zend/tests/bug50394.phpt +++ b/Zend/tests/bug50394.phpt @@ -17,6 +17,7 @@ $proxy = new Proxy; call_user_func_array( array( $proxy, 'bar' ), $args ); call_user_func_array( array( $proxy, 'bar' ), array(&$arg) ); var_dump($arg); +?> --EXPECT-- bar called! bar called! diff --git a/Zend/tests/bug50816.phpt b/Zend/tests/bug50816.phpt index 98a89380c3..f9f11b5849 100644 --- a/Zend/tests/bug50816.phpt +++ b/Zend/tests/bug50816.phpt @@ -35,6 +35,7 @@ var_dump($mapWithoutConst0[1]); var_dump($mapWithoutConst1[1]); var_dump($mapWithoutConst2[1]); var_dump($mapWithoutConst3[1]); +?> --EXPECT-- string(3) "two" string(3) "two" diff --git a/Zend/tests/bug51394.phpt b/Zend/tests/bug51394.phpt index 48623b30f2..629ebec622 100644 --- a/Zend/tests/bug51394.phpt +++ b/Zend/tests/bug51394.phpt @@ -12,6 +12,7 @@ function eh() set_error_handler("eh"); $a = $empty($b); +?> --EXPECTF-- Fatal error: Uncaught Exception: error! in %sbug51394.php:%d Stack trace: diff --git a/Zend/tests/bug52614.phpt b/Zend/tests/bug52614.phpt index f9a659cbe5..8c2bc0dc9e 100644 --- a/Zend/tests/bug52614.phpt +++ b/Zend/tests/bug52614.phpt @@ -69,6 +69,7 @@ $foo->f1()[0]++; var_dump($foo->a1[0]); $foo->f6()[0]++; var_dump($foo->a1[0]); +?> --EXPECT-- NULL array(0) { diff --git a/Zend/tests/bug52879.phpt b/Zend/tests/bug52879.phpt index 09369d2d2f..3489a2afbc 100644 --- a/Zend/tests/bug52879.phpt +++ b/Zend/tests/bug52879.phpt @@ -12,5 +12,6 @@ $myGlobal=new MyClass(); $myGlobal->myRef=&$myGlobal; $myGlobal->myNonExistentProperty="ok\n"; echo $myGlobal; +?> --EXPECT-- ok diff --git a/Zend/tests/bug53511.phpt b/Zend/tests/bug53511.phpt index 7f00e45b59..b07504506a 100644 --- a/Zend/tests/bug53511.phpt +++ b/Zend/tests/bug53511.phpt @@ -19,6 +19,7 @@ function test() { test(); echo "bug\n"; +?> --EXPECTF-- Fatal error: Uncaught Exception: ops 1 in %sbug53511.php:4 Stack trace: diff --git a/Zend/tests/bug53727.phpt b/Zend/tests/bug53727.phpt index 22cd5232c7..6e3500bdcb 100644 --- a/Zend/tests/bug53727.phpt +++ b/Zend/tests/bug53727.phpt @@ -15,6 +15,7 @@ echo (defined('ChildClass::TEST_CONSTANT') ? 'true' : 'false') . "\n"; echo (is_subclass_of('ParentClass', 'MyInterface') ? 'true' : 'false') . "\n"; echo (defined('ParentClass::TEST_CONSTANT') ? 'true' : 'false') . "\n"; +?> --EXPECT-- true true diff --git a/Zend/tests/bug54039.phpt b/Zend/tests/bug54039.phpt index aade872bf2..3531b6efb8 100644 --- a/Zend/tests/bug54039.phpt +++ b/Zend/tests/bug54039.phpt @@ -41,6 +41,7 @@ function test_3() { } $f = test_3(); $f(); $f = test_3(); $f(); +?> --EXPECT-- Outer function increments $v to 1 Inner function reckons $v is 1 diff --git a/Zend/tests/bug54268.phpt b/Zend/tests/bug54268.phpt index b544cd882a..1680f4ceed 100644 --- a/Zend/tests/bug54268.phpt +++ b/Zend/tests/bug54268.phpt @@ -31,5 +31,6 @@ class Test } $x = new Test(); Test::$mystatic = new DestructorCreator(); +?> --EXPECTF-- Fatal error: Allowed memory size of %s bytes exhausted%s(tried to allocate %s bytes) in %s on line %d diff --git a/Zend/tests/bug54547.phpt b/Zend/tests/bug54547.phpt index 452cbb8a53..7cb0cf0664 100644 --- a/Zend/tests/bug54547.phpt +++ b/Zend/tests/bug54547.phpt @@ -13,6 +13,7 @@ var_dump("0x7fffffffffffffff" == "9223372036854775808"); /* not exactly what the bug is about, but closely related problem: */ var_dump("999223372036854775807"=="999223372036854775808"); var_dump("899223372036854775807">"00999223372036854775807"); +?> --EXPECT-- bool(false) bool(false) diff --git a/Zend/tests/bug54910.phpt b/Zend/tests/bug54910.phpt index a63f10fa7f..c8317a1708 100644 --- a/Zend/tests/bug54910.phpt +++ b/Zend/tests/bug54910.phpt @@ -24,5 +24,6 @@ class B extends A {} $input = new B(); echo $input->getEmail(); +?> --EXPECT-- No such method - 'noSuchMethod' diff --git a/Zend/tests/bug55247.phpt b/Zend/tests/bug55247.phpt index 163cc721fb..c87fcb9526 100644 --- a/Zend/tests/bug55247.phpt +++ b/Zend/tests/bug55247.phpt @@ -24,6 +24,7 @@ $test->{'method'}(); Test::method(); Test::$method(); Test::{'method'}(); +?> --EXPECT-- method method diff --git a/Zend/tests/bug55825.phpt b/Zend/tests/bug55825.phpt index 8ce75c4431..eb4dafc96d 100644 --- a/Zend/tests/bug55825.phpt +++ b/Zend/tests/bug55825.phpt @@ -12,6 +12,7 @@ class C { use T1; } $c1 = new C; $c1->inc(); $c1->inc(); +?> --EXPECT-- 1 2 diff --git a/Zend/tests/bug60169.phpt b/Zend/tests/bug60169.phpt index f97574191c..f24c7cb564 100644 --- a/Zend/tests/bug60169.phpt +++ b/Zend/tests/bug60169.phpt @@ -7,5 +7,6 @@ $arr = array("test"); list($a,$b) = is_array($arr)? $arr : $arr; list($c,$d) = is_array($arr)?: NULL; echo "ok\n"; +?> --EXPECT-- ok diff --git a/Zend/tests/bug60362.phpt b/Zend/tests/bug60362.phpt index e8d16ea4cb..51a47760a2 100644 --- a/Zend/tests/bug60362.phpt +++ b/Zend/tests/bug60362.phpt @@ -59,6 +59,7 @@ if (empty($arr['exists'][1][0])) { var_dump($arr['exists'][1][0]); } echo "DONE"; +?> --EXPECT-- sub-key 'non_existent' is not set. sub-key 1 is set: string(1) "o" diff --git a/Zend/tests/bug60444.phpt b/Zend/tests/bug60444.phpt index a86e1d422f..f450b9e4cd 100644 --- a/Zend/tests/bug60444.phpt +++ b/Zend/tests/bug60444.phpt @@ -14,5 +14,6 @@ class Some { } new Foo; echo "done\n"; +?> --EXPECT-- done diff --git a/Zend/tests/bug60613.phpt b/Zend/tests/bug60613.phpt index a9db68dea9..6376d99184 100644 --- a/Zend/tests/bug60613.phpt +++ b/Zend/tests/bug60613.phpt @@ -14,5 +14,6 @@ $cls->{true}(); $cls->{false}(); $cls->{null}(); echo "ok\n"; +?> --EXPECTF-- Fatal error: Method name must be a string in %sbug60613.php on line %d diff --git a/Zend/tests/bug60909_1.phpt b/Zend/tests/bug60909_1.phpt index e709a55c7f..73b451802d 100644 --- a/Zend/tests/bug60909_1.phpt +++ b/Zend/tests/bug60909_1.phpt @@ -9,6 +9,7 @@ set_error_handler(function($errno, $errstr, $errfile, $errline){ }); require 'notfound.php'; +?> --EXPECTF-- error(require(notfound.php): Failed to open stream: %s) Fatal error: Uncaught Exception: Foo in %sbug60909_1.php:5 diff --git a/Zend/tests/bug60909_2.phpt b/Zend/tests/bug60909_2.phpt index 9660a9653f..d382e66bb7 100644 --- a/Zend/tests/bug60909_2.phpt +++ b/Zend/tests/bug60909_2.phpt @@ -12,6 +12,7 @@ class Bad { $bad = new Bad(); echo "$bad"; +?> --EXPECTF-- Fatal error: Uncaught Exception: I CAN DO THIS in %s:%d Stack trace: diff --git a/Zend/tests/bug61165.phpt b/Zend/tests/bug61165.phpt index 68f6797ccf..9c01d78f24 100644 --- a/Zend/tests/bug61165.phpt +++ b/Zend/tests/bug61165.phpt @@ -21,6 +21,7 @@ for ($i = 0; $i < 3; $i++) { strip_tags(new T); } var_dump($handler); +?> --EXPECTF-- object(T)#%d (1) { ["_this"]=> diff --git a/Zend/tests/bug61273.phpt b/Zend/tests/bug61273.phpt index 45461729cb..92ad2c9918 100644 --- a/Zend/tests/bug61273.phpt +++ b/Zend/tests/bug61273.phpt @@ -10,6 +10,7 @@ Bug #61273 (call_user_func_array with more than 16333 arguments leaks / crashes) $args = array_fill(0, 64 * 1024 - 64, 0); call_user_func_array(function(&$a) {}, $args); echo strval("okey"); +?> --EXPECTF-- Warning: {closure}(): Argument #1 ($a) must be passed by reference, value given in %s on line %d okey diff --git a/Zend/tests/bug61767.phpt b/Zend/tests/bug61767.phpt index b1b87b1935..f47eb0cbe8 100644 --- a/Zend/tests/bug61767.phpt +++ b/Zend/tests/bug61767.phpt @@ -14,6 +14,7 @@ register_shutdown_function(function(){ //$undefined = null; // defined variable does not cause problems $undefined->foo(); +?> --EXPECTF-- Error handler called (Undefined variable $undefined) diff --git a/Zend/tests/bug61782.phpt b/Zend/tests/bug61782.phpt index 95bf4e6cff..c6c1d196dc 100644 --- a/Zend/tests/bug61782.phpt +++ b/Zend/tests/bug61782.phpt @@ -23,6 +23,7 @@ Bug #61782 (__clone/__destruct do not match other methods when checking access c $obj = new LatchkeyKid(); echo "DONE\n"; +?> --EXPECT-- In LatchkeyKid: MommasBoy::__clone diff --git a/Zend/tests/bug61970.phpt b/Zend/tests/bug61970.phpt index 9cdb87a01a..8a2335a1f9 100644 --- a/Zend/tests/bug61970.phpt +++ b/Zend/tests/bug61970.phpt @@ -12,5 +12,6 @@ class Bar extends Foo { } echo 'DONE'; +?> --EXPECT-- DONE diff --git a/Zend/tests/bug61970_1.phpt b/Zend/tests/bug61970_1.phpt index 417eaa0aef..f688edf15a 100644 --- a/Zend/tests/bug61970_1.phpt +++ b/Zend/tests/bug61970_1.phpt @@ -10,5 +10,6 @@ abstract class Foo { class Bar extends Foo { protected function __construct(){} } +?> --EXPECTF-- Fatal error: Access level to Bar::__construct() must be public (as in class Foo) in %s on line 8 diff --git a/Zend/tests/bug61970_2.phpt b/Zend/tests/bug61970_2.phpt index 403ba7510a..7ba20f93bc 100644 --- a/Zend/tests/bug61970_2.phpt +++ b/Zend/tests/bug61970_2.phpt @@ -14,5 +14,6 @@ class Bar extends Foo { class Baz extends Bar { protected function __construct(){} } +?> --EXPECTF-- Fatal error: Access level to Baz::__construct() must be public (as in class Foo) in %s on line 12 diff --git a/Zend/tests/bug62097.phpt b/Zend/tests/bug62097.phpt index dda3b34a26..8b78e6c691 100644 --- a/Zend/tests/bug62097.phpt +++ b/Zend/tests/bug62097.phpt @@ -10,6 +10,7 @@ var_dump("02147483647" == "2147483647", "02147483648" == "2147483648", "09007199254740991" == "9007199254740991", "09007199254740992" == "9007199254740992"); +?> --EXPECT-- bool(true) bool(true) diff --git a/Zend/tests/bug63468.phpt b/Zend/tests/bug63468.phpt index ca66c4caed..3eb289e752 100644 --- a/Zend/tests/bug63468.phpt +++ b/Zend/tests/bug63468.phpt @@ -25,5 +25,6 @@ class Bar extends Foo $x = new Bar; var_dump($x->run()); +?> --EXPECT-- string(3) "Bar" diff --git a/Zend/tests/bug63635.phpt b/Zend/tests/bug63635.phpt index df3afef178..09f8936158 100644 --- a/Zend/tests/bug63635.phpt +++ b/Zend/tests/bug63635.phpt @@ -34,6 +34,7 @@ for ($n = 0; $n < 20; $n++) { echo "$n\n"; } echo "ok\n"; +?> --EXPECT-- 0 1 diff --git a/Zend/tests/bug63982.phpt b/Zend/tests/bug63982.phpt index 4318a5091c..f482aa4891 100644 --- a/Zend/tests/bug63982.phpt +++ b/Zend/tests/bug63982.phpt @@ -10,6 +10,7 @@ $test = new Test(); var_dump(isset($test->protectedProperty)); var_dump(isset($test->protectedProperty->foo)); +?> --EXPECT-- bool(false) bool(false) diff --git a/Zend/tests/bug64135.phpt b/Zend/tests/bug64135.phpt index e4be3e0c64..b4f4c82b3a 100644 --- a/Zend/tests/bug64135.phpt +++ b/Zend/tests/bug64135.phpt @@ -13,5 +13,6 @@ try { } catch(Throwable $e) { echo "Exception is thrown"; } +?> --EXPECT-- Exception is thrown diff --git a/Zend/tests/bug64239_1.phpt b/Zend/tests/bug64239_1.phpt index aa20578b89..2e3c7173bc 100644 --- a/Zend/tests/bug64239_1.phpt +++ b/Zend/tests/bug64239_1.phpt @@ -15,6 +15,7 @@ trait T2 { } print_r(get_class_methods("A")); print_r(get_class_methods("B")); +?> --EXPECT-- Array ( diff --git a/Zend/tests/bug64417.phpt b/Zend/tests/bug64417.phpt index c81caf72dc..6d1b084dca 100644 --- a/Zend/tests/bug64417.phpt +++ b/Zend/tests/bug64417.phpt @@ -34,5 +34,6 @@ $o = new obj; $o['x'] = 1; ++$o['x']; echo $o['x'], "\n"; +?> --EXPECT-- 2 diff --git a/Zend/tests/bug64578.phpt b/Zend/tests/bug64578.phpt index d0d69995ad..7d4a32be87 100644 --- a/Zend/tests/bug64578.phpt +++ b/Zend/tests/bug64578.phpt @@ -9,6 +9,7 @@ function x($s) { $s['2a'] = 1; }; $y = '1'; x($y); print_r($y); +?> --EXPECT-- string(26) "Illegal string offset "2a"" 1 diff --git a/Zend/tests/bug65108.phpt b/Zend/tests/bug65108.phpt index 55c6b8c5b3..04fe3e134d 100644 --- a/Zend/tests/bug65108.phpt +++ b/Zend/tests/bug65108.phpt @@ -22,6 +22,7 @@ Class E { } $isCallable = is_callable(array('E', 'f')); var_dump($isCallable); +?> --EXPECT-- bool(false) bool(false) diff --git a/Zend/tests/bug65254.phpt b/Zend/tests/bug65254.phpt index d58759bfd4..81f1fd5ccd 100644 --- a/Zend/tests/bug65254.phpt +++ b/Zend/tests/bug65254.phpt @@ -16,5 +16,6 @@ catch (Exception $e) { echo 'caught'; } +?> --EXPECT-- caught diff --git a/Zend/tests/bug65784.phpt b/Zend/tests/bug65784.phpt index 8c0db4fa4a..78a7cd12d9 100644 --- a/Zend/tests/bug65784.phpt +++ b/Zend/tests/bug65784.phpt @@ -53,6 +53,7 @@ function foo3() { } $bar = foo3(); +?> --EXPECTF-- string(9) "not catch" NULL diff --git a/Zend/tests/bug66015.phpt b/Zend/tests/bug66015.phpt index 1222ab3a96..41521455e8 100644 --- a/Zend/tests/bug66015.phpt +++ b/Zend/tests/bug66015.phpt @@ -23,7 +23,6 @@ class Test $test = new Test(); ?> - --EXPECT-- array ( 1 => 'first', diff --git a/Zend/tests/bug66252.phpt b/Zend/tests/bug66252.phpt index 8b5919801e..3816ebda09 100644 --- a/Zend/tests/bug66252.phpt +++ b/Zend/tests/bug66252.phpt @@ -10,5 +10,6 @@ class B extends A { } const C = B::BHW; echo C, "\n"; +?> --EXPECT-- this is A extended by B diff --git a/Zend/tests/bug66608.phpt b/Zend/tests/bug66608.phpt index b4e761ddc4..367ae4e419 100644 --- a/Zend/tests/bug66608.phpt +++ b/Zend/tests/bug66608.phpt @@ -57,6 +57,7 @@ function bar() { echo "13\n"; } bar(); +?> --EXPECT-- 1 2 diff --git a/Zend/tests/bug67314.phpt b/Zend/tests/bug67314.phpt index beb44af667..8077b01881 100644 --- a/Zend/tests/bug67314.phpt +++ b/Zend/tests/bug67314.phpt @@ -14,6 +14,7 @@ crash(); echo "made it once\n"; crash(); echo "ok\n"; +?> --EXPECTF-- Warning: Undefined variable $i in %s on line %d made it once diff --git a/Zend/tests/bug67368.phpt b/Zend/tests/bug67368.phpt index 39d8bd30d6..f588270f59 100644 --- a/Zend/tests/bug67368.phpt +++ b/Zend/tests/bug67368.phpt @@ -8,5 +8,6 @@ class FooBar { const bar = ["bar" => 3]["bar"]; } echo "okey"; +?> --EXPECT-- okey diff --git a/Zend/tests/bug67436/bug67436.phpt b/Zend/tests/bug67436/bug67436.phpt index 1ceb83f491..7496973580 100644 --- a/Zend/tests/bug67436/bug67436.phpt +++ b/Zend/tests/bug67436/bug67436.phpt @@ -21,6 +21,7 @@ a::staticTest(); $b = new b(); $b->test(); +?> --EXPECTF-- string(%d) "The magic method b::__invoke() must have public visibility" b::test() diff --git a/Zend/tests/bug67436/bug67436_nohandler.phpt b/Zend/tests/bug67436/bug67436_nohandler.phpt index 4a34870ebf..3dacb1bc96 100644 --- a/Zend/tests/bug67436/bug67436_nohandler.phpt +++ b/Zend/tests/bug67436/bug67436_nohandler.phpt @@ -13,6 +13,7 @@ a::staticTest(); $b = new b(); $b->test(); +?> --EXPECTF-- Warning: The magic method b::__invoke() must have public visibility in %s on line %d b::test() diff --git a/Zend/tests/bug68370.phpt b/Zend/tests/bug68370.phpt index b480bffab5..ec5f5ed9ff 100644 --- a/Zend/tests/bug68370.phpt +++ b/Zend/tests/bug68370.phpt @@ -12,5 +12,6 @@ $c = new C(); $x = $c->test(); print_r($x); unset($c, $x); +?> --EXPECTF-- Fatal error: Cannot unset $this in %sbug68370.php on line 4 diff --git a/Zend/tests/bug68896.phpt b/Zend/tests/bug68896.phpt index 988e98e31e..b3b62a6ed0 100644 --- a/Zend/tests/bug68896.phpt +++ b/Zend/tests/bug68896.phpt @@ -26,6 +26,7 @@ $obj = new A; $obj["a"] = 1; $obj["a"] .= "test"; var_dump($obj["a"]); +?> --EXPECT-- string(5) "1test" string(5) "1test" diff --git a/Zend/tests/bug69446.phpt b/Zend/tests/bug69446.phpt index e68443b803..a82ecb4472 100644 --- a/Zend/tests/bug69446.phpt +++ b/Zend/tests/bug69446.phpt @@ -21,6 +21,7 @@ $foo->bad->x = new stdClass; unset($foo); gc_collect_cycles(); var_dump($bar); +?> --EXPECT-- object(bad)#2 (2) { ["x"]=> diff --git a/Zend/tests/bug69446_2.phpt b/Zend/tests/bug69446_2.phpt index 8ef2300e93..be7dfec021 100644 --- a/Zend/tests/bug69446_2.phpt +++ b/Zend/tests/bug69446_2.phpt @@ -30,6 +30,7 @@ unserialize(serialize($foo)); gc_collect_cycles(); var_dump($bar); +?> --EXPECT-- object(bad)#4 (1) { ["_private"]=> diff --git a/Zend/tests/bug69732.phpt b/Zend/tests/bug69732.phpt index 690318fbfa..7baa71fb63 100644 --- a/Zend/tests/bug69732.phpt +++ b/Zend/tests/bug69732.phpt @@ -19,6 +19,7 @@ $wpq = new wpq; $wpq->interesting =& ret_assoc(); $x = $wpq->interesting; printf("%s\n", $x); +?> --EXPECTF-- Warning: Undefined property: wpq::$interesting in %s on line %d diff --git a/Zend/tests/bug69891.phpt b/Zend/tests/bug69891.phpt index f4b30948de..97cf2e15ee 100644 --- a/Zend/tests/bug69891.phpt +++ b/Zend/tests/bug69891.phpt @@ -6,6 +6,7 @@ Bug #69891: Unexpected array comparison result var_dump([1, 2, 3] <=> []); var_dump([] <=> [1, 2, 3]); var_dump([1] <=> [2, 3]); +?> --EXPECT-- int(1) int(-1) diff --git a/Zend/tests/bug69955.phpt b/Zend/tests/bug69955.phpt index ece96a88ad..1c8340af2c 100644 --- a/Zend/tests/bug69955.phpt +++ b/Zend/tests/bug69955.phpt @@ -25,6 +25,7 @@ class C10 implements ArrayAccess $c10 = new C10; var_dump($c10[] += 5); +?> --EXPECT-- Inside C10::offsetGet NULL diff --git a/Zend/tests/bug70117.phpt b/Zend/tests/bug70117.phpt index cc46be6458..51b77457ab 100644 --- a/Zend/tests/bug70117.phpt +++ b/Zend/tests/bug70117.phpt @@ -16,6 +16,7 @@ function &foo1() :string { var_dump(foo()); var_dump(foo1()); +?> --EXPECT-- string(1) "1" string(3) "ref" diff --git a/Zend/tests/bug70805_2.phpt b/Zend/tests/bug70805_2.phpt index b33d47a6a9..4bbc3347ec 100644 --- a/Zend/tests/bug70805_2.phpt +++ b/Zend/tests/bug70805_2.phpt @@ -35,5 +35,6 @@ unset($t); unset($a); var_dump(gc_collect_cycles()); +?> --EXPECT-- int(2) diff --git a/Zend/tests/bug70997.phpt b/Zend/tests/bug70997.phpt index 119eb6cbbe..286d4bccfa 100644 --- a/Zend/tests/bug70997.phpt +++ b/Zend/tests/bug70997.phpt @@ -22,5 +22,6 @@ class B extends A { $b = new B; $b->test(); +?> --EXPECT-- bool(true) diff --git a/Zend/tests/bug71221.phpt b/Zend/tests/bug71221.phpt index b55a14a2bd..4a3819ba04 100644 --- a/Zend/tests/bug71221.phpt +++ b/Zend/tests/bug71221.phpt @@ -3,6 +3,7 @@ Bug #71221 (Null pointer deref (segfault) in get_defined_vars via ob_start) --FILE-- <?php register_shutdown_function("get_defined_vars"); +?> --EXPECT-- Fatal error: Uncaught Error: Cannot call get_defined_vars() dynamically in [no active file]:0 Stack trace: diff --git a/Zend/tests/bug71414.phpt b/Zend/tests/bug71414.phpt index 09f8b7dd32..ca1b761982 100644 --- a/Zend/tests/bug71414.phpt +++ b/Zend/tests/bug71414.phpt @@ -21,5 +21,6 @@ class Y extends X implements InterfaceY { } echo "ok"; +?> --EXPECT-- ok diff --git a/Zend/tests/bug71428.1.phpt b/Zend/tests/bug71428.1.phpt index ba6af01706..be7c7f4826 100644 --- a/Zend/tests/bug71428.1.phpt +++ b/Zend/tests/bug71428.1.phpt @@ -8,5 +8,6 @@ class A { class B extends A { public function m(array $a = []) {} } +?> --EXPECTF-- Fatal error: Declaration of B::m(array $a = []) must be compatible with A::m(?array $a = null) in %s on line %d diff --git a/Zend/tests/bug72101.phpt b/Zend/tests/bug72101.phpt index 30d7820dc2..6951e88cf3 100644 --- a/Zend/tests/bug72101.phpt +++ b/Zend/tests/bug72101.phpt @@ -73,6 +73,7 @@ $OuterMatcher->methodNameMatcher = null; $OuterMatcher->stub = new PHPUnit_Framework_MockObject_Stub_ReturnCallback([$foo, 'callback']); $a = $b = $c = 0; $foo->bar($a, $b, $c); +?> --EXPECTF-- Fatal error: Uncaught Error: Class "DoesNotExists" not found in %s:%d Stack trace: diff --git a/Zend/tests/bug72496.phpt b/Zend/tests/bug72496.phpt index 62e55cb561..5ba67bfa6d 100644 --- a/Zend/tests/bug72496.phpt +++ b/Zend/tests/bug72496.phpt @@ -39,5 +39,6 @@ class Bar extends Foo } echo "OK\n"; +?> --EXPECT-- OK diff --git a/Zend/tests/bug76800.phpt b/Zend/tests/bug76800.phpt index d7f6d8070b..0caac2a357 100644 --- a/Zend/tests/bug76800.phpt +++ b/Zend/tests/bug76800.phpt @@ -8,6 +8,7 @@ foreach($arr as $key => &$val) { // without & will print both keys $arr[0] = 0; // without this line will print both keys unset($arr[0]); } +?> --EXPECT-- See key 1 See key 3 diff --git a/Zend/tests/bug77345_gc_1.phpt b/Zend/tests/bug77345_gc_1.phpt index eabb94ce7d..b50031aba6 100644 --- a/Zend/tests/bug77345_gc_1.phpt +++ b/Zend/tests/bug77345_gc_1.phpt @@ -36,7 +36,8 @@ for ($i = 0; $i < 200000; $i++) { $circularDoublyLinkedList = $nextNode; } var_dump('end'); +?> --EXPECT-- bool(true) string(5) "start" -string(3) "end"
\ No newline at end of file +string(3) "end" diff --git a/Zend/tests/bug77345_gc_2.phpt b/Zend/tests/bug77345_gc_2.phpt index 9d39b6b969..57353c5a3f 100644 --- a/Zend/tests/bug77345_gc_2.phpt +++ b/Zend/tests/bug77345_gc_2.phpt @@ -42,7 +42,8 @@ xxx(); gc_collect_cycles(); var_dump('end'); +?> --EXPECT-- bool(true) string(5) "start" -string(3) "end"
\ No newline at end of file +string(3) "end" diff --git a/Zend/tests/bug77738.phpt b/Zend/tests/bug77738.phpt index a2e5fa06fd..e940b85ba5 100644 --- a/Zend/tests/bug77738.phpt +++ b/Zend/tests/bug77738.phpt @@ -4,6 +4,7 @@ Bug #77738 (Nullptr deref in zend_compile_expr) <?php __COMPILER_HALT_OFFSET__; ; // <- important +?> --EXPECTF-- Fatal error: Uncaught Error: Undefined constant "__COMPILER_HALT_OFFSET__" in %s:%d Stack trace: diff --git a/Zend/tests/bug77993.phpt b/Zend/tests/bug77993.phpt index 46eed0f4dc..e7b2bec776 100644 --- a/Zend/tests/bug77993.phpt +++ b/Zend/tests/bug77993.phpt @@ -3,5 +3,6 @@ Bug #77993 (Wrong parse error for invalid hex literal on Windows) --FILE-- <?php 0xg10; +?> --EXPECTF-- Parse error: syntax error, unexpected identifier "xg10" in %s on line %d diff --git a/Zend/tests/bug78999.phpt b/Zend/tests/bug78999.phpt index e44a38f077..bf7291a322 100644 --- a/Zend/tests/bug78999.phpt +++ b/Zend/tests/bug78999.phpt @@ -9,6 +9,7 @@ function get() { } var_dump(get()); var_dump(gc_collect_cycles()); +?> --EXPECT-- object(stdClass)#1 (1) { ["prop"]=> diff --git a/Zend/tests/call_static.phpt b/Zend/tests/call_static.phpt index 4debb412dc..80aec15f45 100644 --- a/Zend/tests/call_static.phpt +++ b/Zend/tests/call_static.phpt @@ -13,6 +13,7 @@ class Test call_user_func("Test::Two", 'A', 'B'); call_user_func(array("Test", "Three"), NULL, 0, false); Test::Four(5, 6, 7, 8); +?> --EXPECT-- Two() called with 2 arguments Three() called with 3 arguments diff --git a/Zend/tests/closure_023.phpt b/Zend/tests/closure_023.phpt index a91d357c06..089ec8cc4d 100644 --- a/Zend/tests/closure_023.phpt +++ b/Zend/tests/closure_023.phpt @@ -9,5 +9,6 @@ class foo { } } foo::bar(); +?> --EXPECT-- Done diff --git a/Zend/tests/closure_041.phpt b/Zend/tests/closure_041.phpt index 20e5217095..d709257484 100644 --- a/Zend/tests/closure_041.phpt +++ b/Zend/tests/closure_041.phpt @@ -61,6 +61,7 @@ $d = $nonstaticUnscoped->bindTo(new B); $d(); echo " (should be scoped to dummy $d = $nonstaticScoped->bindTo(new B); $d(); echo "\n"; echo "Done.\n"; +?> --EXPECTF-- Before binding scoped to A: bool(false) diff --git a/Zend/tests/closure_043.phpt b/Zend/tests/closure_043.phpt index 13c3e519b9..bfcd37b38e 100644 --- a/Zend/tests/closure_043.phpt +++ b/Zend/tests/closure_043.phpt @@ -38,6 +38,7 @@ $d = $staticUnscoped->bindTo(new A, 'A'); $d = $staticScoped->bindTo(new A, 'A'); echo "Done.\n"; +?> --EXPECTF-- Before binding bool(false) diff --git a/Zend/tests/closure_044.phpt b/Zend/tests/closure_044.phpt index e886f5e764..544ad8bee8 100644 --- a/Zend/tests/closure_044.phpt +++ b/Zend/tests/closure_044.phpt @@ -38,6 +38,7 @@ $d = $nonstaticUnscoped->bindTo(new A, 'A'); $d(); echo "\n"; $d = $nonstaticScoped->bindTo(new A, 'A'); $d(); echo "\n"; echo "Done.\n"; +?> --EXPECTF-- Before binding bool(false) diff --git a/Zend/tests/closure_045.phpt b/Zend/tests/closure_045.phpt index 2b99476678..6ffce8342e 100644 --- a/Zend/tests/closure_045.phpt +++ b/Zend/tests/closure_045.phpt @@ -13,5 +13,6 @@ $a = A::foo(); $a->bindTo(new A); echo "Done.\n"; +?> --EXPECT-- Done. diff --git a/Zend/tests/closure_046.phpt b/Zend/tests/closure_046.phpt index 5f0a0ba160..9dbcba5ce5 100644 --- a/Zend/tests/closure_046.phpt +++ b/Zend/tests/closure_046.phpt @@ -36,6 +36,7 @@ echo "After binding, with different instance for the bound one", "\n"; $d = $nonstaticScoped->bindTo(new B, "static"); $d(); echo "\n"; echo "Done.\n"; +?> --EXPECTF-- Before binding bool(false) diff --git a/Zend/tests/closure_049.phpt b/Zend/tests/closure_049.phpt index c5ed917f16..80e56e32c9 100644 --- a/Zend/tests/closure_049.phpt +++ b/Zend/tests/closure_049.phpt @@ -17,5 +17,6 @@ class B extends A {} $b = new B; var_dump($b->foo()); +?> --EXPECT-- string(1) "B" diff --git a/Zend/tests/closure_050.phpt b/Zend/tests/closure_050.phpt index 1ab0c3fa58..f9339cd966 100644 --- a/Zend/tests/closure_050.phpt +++ b/Zend/tests/closure_050.phpt @@ -16,5 +16,6 @@ class B extends A {} $b = new B; var_dump($b->foo()); +?> --EXPECT-- string(1) "B" diff --git a/Zend/tests/closure_051.phpt b/Zend/tests/closure_051.phpt index ab514123c0..95180e95f4 100644 --- a/Zend/tests/closure_051.phpt +++ b/Zend/tests/closure_051.phpt @@ -15,5 +15,6 @@ class A { class B extends A {} var_dump(B::foo()); +?> --EXPECT-- string(1) "B" diff --git a/Zend/tests/closure_052.phpt b/Zend/tests/closure_052.phpt index 5550cc92dc..79397edb39 100644 --- a/Zend/tests/closure_052.phpt +++ b/Zend/tests/closure_052.phpt @@ -15,5 +15,6 @@ class A { class B extends A {} var_dump(B::foo()); +?> --EXPECT-- string(1) "B" diff --git a/Zend/tests/closure_053.phpt b/Zend/tests/closure_053.phpt index 65c65ae08a..d8c7044927 100644 --- a/Zend/tests/closure_053.phpt +++ b/Zend/tests/closure_053.phpt @@ -16,5 +16,6 @@ class B extends A {} $b = new B; var_dump($b->foo()); +?> --EXPECT-- string(1) "A" diff --git a/Zend/tests/closure_054.phpt b/Zend/tests/closure_054.phpt index 87c46d7a19..f81e6c96d5 100644 --- a/Zend/tests/closure_054.phpt +++ b/Zend/tests/closure_054.phpt @@ -16,5 +16,6 @@ class B extends A {} $b = new B; var_dump($b->foo()); +?> --EXPECT-- string(1) "A" diff --git a/Zend/tests/closure_055.phpt b/Zend/tests/closure_055.phpt index 2dc1d47103..f903b487c5 100644 --- a/Zend/tests/closure_055.phpt +++ b/Zend/tests/closure_055.phpt @@ -15,5 +15,6 @@ class A { class B extends A {} var_dump(B::foo()); +?> --EXPECT-- string(1) "A" diff --git a/Zend/tests/closure_056.phpt b/Zend/tests/closure_056.phpt index d1fa848ee6..b032135139 100644 --- a/Zend/tests/closure_056.phpt +++ b/Zend/tests/closure_056.phpt @@ -15,5 +15,6 @@ class A { class B extends A {} var_dump(B::foo()); +?> --EXPECT-- string(1) "A" diff --git a/Zend/tests/closure_058.phpt b/Zend/tests/closure_058.phpt index 2a83778954..5880492201 100644 --- a/Zend/tests/closure_058.phpt +++ b/Zend/tests/closure_058.phpt @@ -30,6 +30,7 @@ $c = array($b,"__invoke"); $c(); call_user_func(array($b,"__invoke")); $z(array($b,"__invoke")); +?> --EXPECT-- string(1) "A" string(1) "A" diff --git a/Zend/tests/closure_059.phpt b/Zend/tests/closure_059.phpt index ab418e42b7..9ec04d02ae 100644 --- a/Zend/tests/closure_059.phpt +++ b/Zend/tests/closure_059.phpt @@ -32,6 +32,7 @@ try { } catch (Error $e) { echo "Exception: " . $e->getMessage() . "\n"; } +?> --EXPECTF-- Exception: {closure}(): Argument #1 ($a) must be of type A, B given, called in %s on line %d Exception: {closure}(): Argument #1 ($a) must be of type A, B given diff --git a/Zend/tests/closure_bug66622.phpt b/Zend/tests/closure_bug66622.phpt index 44bbcbaa8d..2a02198351 100644 --- a/Zend/tests/closure_bug66622.phpt +++ b/Zend/tests/closure_bug66622.phpt @@ -28,6 +28,7 @@ function test() { B::baz(); } test(); +?> --EXPECT-- B vs B B vs B diff --git a/Zend/tests/compound_assign_with_numeric_strings.phpt b/Zend/tests/compound_assign_with_numeric_strings.phpt index a801991a1e..c6cee53d95 100644 --- a/Zend/tests/compound_assign_with_numeric_strings.phpt +++ b/Zend/tests/compound_assign_with_numeric_strings.phpt @@ -38,6 +38,7 @@ try{ $n = "-1"; $n %= $n; var_dump($n); +?> --EXPECT-- int(0) diff --git a/Zend/tests/const_dereference_002.phpt b/Zend/tests/const_dereference_002.phpt index d7195dd282..7d83acadbd 100644 --- a/Zend/tests/const_dereference_002.phpt +++ b/Zend/tests/const_dereference_002.phpt @@ -7,6 +7,7 @@ error_reporting(E_ALL); var_dump("foobar"[3]); var_dump("foobar"[2][0]); var_dump("foobar"["0foo"]["0bar"]); +?> --EXPECTF-- string(1) "b" string(1) "o" diff --git a/Zend/tests/constant_arrays.phpt b/Zend/tests/constant_arrays.phpt index d439ff6922..84f71fccf2 100644 --- a/Zend/tests/constant_arrays.phpt +++ b/Zend/tests/constant_arrays.phpt @@ -39,6 +39,7 @@ try { } catch (ValueError $exception) { echo $exception->getMessage() . "\n"; } +?> --EXPECTF-- array(4) { [0]=> diff --git a/Zend/tests/constant_expressions_exceptions_001.phpt b/Zend/tests/constant_expressions_exceptions_001.phpt index 98e61765b3..279db24372 100644 --- a/Zend/tests/constant_expressions_exceptions_001.phpt +++ b/Zend/tests/constant_expressions_exceptions_001.phpt @@ -3,6 +3,7 @@ Constant Expressions with unsupported operands 001 --FILE-- <?php const T = array(1,2) - array(0); +?> --EXPECTF-- Fatal error: Uncaught TypeError: Unsupported operand types: array - array in %s:%d Stack trace: diff --git a/Zend/tests/debug_backtrace_with_include_and_this.phpt b/Zend/tests/debug_backtrace_with_include_and_this.phpt index 3ee3a7312f..1364432f5d 100644 --- a/Zend/tests/debug_backtrace_with_include_and_this.phpt +++ b/Zend/tests/debug_backtrace_with_include_and_this.phpt @@ -27,6 +27,7 @@ try { } catch (CLException $e) { echo $e."\n"; } +?> --EXPECTF-- ERR#2: include(class://non.existent.Class): Failed to open stream: "CLWrapper::stream_open" call failed @ include ERR#2: include(): Failed opening 'class://non.existent.Class' for inclusion (include_path='%s') @ include diff --git a/Zend/tests/debug_info-error-0.0.phpt b/Zend/tests/debug_info-error-0.0.phpt index 1c8dfc8853..e3996e0f25 100644 --- a/Zend/tests/debug_info-error-0.0.phpt +++ b/Zend/tests/debug_info-error-0.0.phpt @@ -15,5 +15,6 @@ class C { $c = new C(0.0); var_dump($c); +?> --EXPECTF-- Fatal error: __debuginfo() must return an array in %s%eZend%etests%edebug_info-error-0.0.php on line %d diff --git a/Zend/tests/debug_info-error-0.phpt b/Zend/tests/debug_info-error-0.phpt index 868ac2f75f..7dbac320a1 100644 --- a/Zend/tests/debug_info-error-0.phpt +++ b/Zend/tests/debug_info-error-0.phpt @@ -15,5 +15,6 @@ class C { $c = new C(0); var_dump($c); +?> --EXPECTF-- Fatal error: __debuginfo() must return an array in %s%eZend%etests%edebug_info-error-0.php on line %d diff --git a/Zend/tests/debug_info-error-1.0.phpt b/Zend/tests/debug_info-error-1.0.phpt index 27611237bb..0213e9daad 100644 --- a/Zend/tests/debug_info-error-1.0.phpt +++ b/Zend/tests/debug_info-error-1.0.phpt @@ -15,5 +15,6 @@ class C { $c = new C(1.0); var_dump($c); +?> --EXPECTF-- Fatal error: __debuginfo() must return an array in %s%eZend%etests%edebug_info-error-1.0.php on line %d diff --git a/Zend/tests/debug_info-error-1.phpt b/Zend/tests/debug_info-error-1.phpt index e2e9823ed4..a8e4644b49 100644 --- a/Zend/tests/debug_info-error-1.phpt +++ b/Zend/tests/debug_info-error-1.phpt @@ -15,5 +15,6 @@ class C { $c = new C(1); var_dump($c); +?> --EXPECTF-- Fatal error: __debuginfo() must return an array in %s%eZend%etests%edebug_info-error-1.php on line %d diff --git a/Zend/tests/debug_info-error-empty_str.phpt b/Zend/tests/debug_info-error-empty_str.phpt index 72ab85d7d8..39f227cb96 100644 --- a/Zend/tests/debug_info-error-empty_str.phpt +++ b/Zend/tests/debug_info-error-empty_str.phpt @@ -15,5 +15,6 @@ class C { $c = new C(""); var_dump($c); +?> --EXPECTF-- Fatal error: __debuginfo() must return an array in %s%eZend%etests%edebug_info-error-empty_str.php on line %d diff --git a/Zend/tests/debug_info-error-false.phpt b/Zend/tests/debug_info-error-false.phpt index d6e19938af..bf18ed4d03 100644 --- a/Zend/tests/debug_info-error-false.phpt +++ b/Zend/tests/debug_info-error-false.phpt @@ -15,5 +15,6 @@ class C { $c = new C(false); var_dump($c); +?> --EXPECTF-- Fatal error: __debuginfo() must return an array in %s%eZend%etests%edebug_info-error-false.php on line %d diff --git a/Zend/tests/debug_info-error-object.phpt b/Zend/tests/debug_info-error-object.phpt index 40737db2b6..e94c2dfb36 100644 --- a/Zend/tests/debug_info-error-object.phpt +++ b/Zend/tests/debug_info-error-object.phpt @@ -15,5 +15,6 @@ class C { $c = new C(new stdClass); var_dump($c); +?> --EXPECTF-- Fatal error: __debuginfo() must return an array in %s%eZend%etests%edebug_info-error-object.php on line %d diff --git a/Zend/tests/debug_info-error-resource.phpt b/Zend/tests/debug_info-error-resource.phpt index e3bd542949..285ed72e33 100644 --- a/Zend/tests/debug_info-error-resource.phpt +++ b/Zend/tests/debug_info-error-resource.phpt @@ -17,5 +17,6 @@ class C { $c = new C(fopen("data:text/plain,Foo", 'r')); var_dump($c); +?> --EXPECTF-- Fatal error: __debuginfo() must return an array in %s%eZend%etests%edebug_info-error-resource.php on line %d diff --git a/Zend/tests/debug_info-error-str.phpt b/Zend/tests/debug_info-error-str.phpt index aa16d5bf7c..daf0ad3b58 100644 --- a/Zend/tests/debug_info-error-str.phpt +++ b/Zend/tests/debug_info-error-str.phpt @@ -15,5 +15,6 @@ class C { $c = new C("foo"); var_dump($c); +?> --EXPECTF-- Fatal error: __debuginfo() must return an array in %s%eZend%etests%edebug_info-error-str.php on line %d diff --git a/Zend/tests/debug_info-error-true.phpt b/Zend/tests/debug_info-error-true.phpt index 2501e8a412..41a68c5c39 100644 --- a/Zend/tests/debug_info-error-true.phpt +++ b/Zend/tests/debug_info-error-true.phpt @@ -15,5 +15,6 @@ class C { $c = new C(true); var_dump($c); +?> --EXPECTF-- Fatal error: __debuginfo() must return an array in %s%eZend%etests%edebug_info-error-true.php on line %d diff --git a/Zend/tests/debug_info.phpt b/Zend/tests/debug_info.phpt index c82ddb2143..6f559eb40b 100644 --- a/Zend/tests/debug_info.phpt +++ b/Zend/tests/debug_info.phpt @@ -26,6 +26,7 @@ var_dump($f); $b = new Bar; var_dump($b); +?> --EXPECTF-- object(Foo)#%d (3) { ["a"]=> diff --git a/Zend/tests/declare_006.phpt b/Zend/tests/declare_006.phpt index 6d41c0d7d6..0c32927dc2 100644 --- a/Zend/tests/declare_006.phpt +++ b/Zend/tests/declare_006.phpt @@ -5,5 +5,6 @@ Use of non-literals in declare ticks values crashes compiler declare(ticks = UNKNOWN_CONST) { echo 'Done'; } +?> --EXPECTF-- Fatal error: declare(ticks) value must be a literal in %sdeclare_006.php on line 2 diff --git a/Zend/tests/dynamic_prop_name_leak.phpt b/Zend/tests/dynamic_prop_name_leak.phpt index 093a42400d..4f73022802 100644 --- a/Zend/tests/dynamic_prop_name_leak.phpt +++ b/Zend/tests/dynamic_prop_name_leak.phpt @@ -6,6 +6,7 @@ $obj = new stdClass; $name = 0.0; $ref =& $obj->$name; var_dump($obj); +?> --EXPECT-- object(stdClass)#1 (1) { ["0"]=> diff --git a/Zend/tests/empty_with_expr.phpt b/Zend/tests/empty_with_expr.phpt index 582eb3d2d0..d424e10d18 100644 --- a/Zend/tests/empty_with_expr.phpt +++ b/Zend/tests/empty_with_expr.phpt @@ -19,6 +19,7 @@ var_dump(empty("string")); var_dump(empty("")); var_dump(empty(true)); var_dump(empty(false)); +?> --EXPECT-- bool(true) bool(false) diff --git a/Zend/tests/function_arguments/argument_count_correct.phpt b/Zend/tests/function_arguments/argument_count_correct.phpt index 9c73b93520..e4e8e72b22 100644 --- a/Zend/tests/function_arguments/argument_count_correct.phpt +++ b/Zend/tests/function_arguments/argument_count_correct.phpt @@ -16,5 +16,6 @@ $fp = fopen(__FILE__, "r"); fclose($fp); echo "done"; +?> --EXPECT-- done diff --git a/Zend/tests/function_arguments/argument_count_correct_strict.phpt b/Zend/tests/function_arguments/argument_count_correct_strict.phpt index feed8b5964..be19471edb 100644 --- a/Zend/tests/function_arguments/argument_count_correct_strict.phpt +++ b/Zend/tests/function_arguments/argument_count_correct_strict.phpt @@ -16,5 +16,6 @@ $fp = fopen(__FILE__, "r"); fclose($fp); echo "done"; +?> --EXPECT-- done diff --git a/Zend/tests/function_arguments/argument_count_incorrect_internal.phpt b/Zend/tests/function_arguments/argument_count_incorrect_internal.phpt index 5c0770ff65..5d5235888f 100644 --- a/Zend/tests/function_arguments/argument_count_incorrect_internal.phpt +++ b/Zend/tests/function_arguments/argument_count_incorrect_internal.phpt @@ -7,5 +7,6 @@ try { } catch (ArgumentCountError $e) { echo $e->getMessage(), "\n"; } +?> --EXPECT-- substr() expects at least 2 parameters, 1 given diff --git a/Zend/tests/function_arguments/argument_count_incorrect_internal_strict.phpt b/Zend/tests/function_arguments/argument_count_incorrect_internal_strict.phpt index 33337bb908..66b6517379 100644 --- a/Zend/tests/function_arguments/argument_count_incorrect_internal_strict.phpt +++ b/Zend/tests/function_arguments/argument_count_incorrect_internal_strict.phpt @@ -16,6 +16,7 @@ try { echo get_class($e) . PHP_EOL; echo $e->getMessage(), "\n"; } +?> --EXPECT-- ArgumentCountError substr() expects at least 2 parameters, 1 given diff --git a/Zend/tests/function_arguments/argument_count_incorrect_userland.phpt b/Zend/tests/function_arguments/argument_count_incorrect_userland.phpt index 1e7969b44c..db9be6d851 100644 --- a/Zend/tests/function_arguments/argument_count_incorrect_userland.phpt +++ b/Zend/tests/function_arguments/argument_count_incorrect_userland.phpt @@ -33,6 +33,7 @@ try { echo get_class($e) . PHP_EOL; echo $e->getMessage() . PHP_EOL; } +?> --EXPECTF-- ArgumentCountError Too few arguments to function foo(), 0 passed in %s and exactly 1 expected diff --git a/Zend/tests/function_arguments/argument_count_incorrect_userland_strict.phpt b/Zend/tests/function_arguments/argument_count_incorrect_userland_strict.phpt index 206b96149b..2a67a9ce4c 100644 --- a/Zend/tests/function_arguments/argument_count_incorrect_userland_strict.phpt +++ b/Zend/tests/function_arguments/argument_count_incorrect_userland_strict.phpt @@ -41,6 +41,7 @@ try { echo get_class($e) . PHP_EOL; echo $e->getMessage() . PHP_EOL; } +?> --EXPECTF-- ArgumentCountError Too few arguments to function foo(), 0 passed in %s and exactly 1 expected diff --git a/Zend/tests/function_arguments/variadic_argument_type_error.phpt b/Zend/tests/function_arguments/variadic_argument_type_error.phpt index 3a9bc050cc..c0db48dc6f 100644 --- a/Zend/tests/function_arguments/variadic_argument_type_error.phpt +++ b/Zend/tests/function_arguments/variadic_argument_type_error.phpt @@ -17,6 +17,7 @@ try { echo $exception->getMessage() . "\n"; } +?> --EXPECTF-- foo(): Argument #2 ($bar) must be of type int, array given, called in %s on line %d foo(): Argument #4 ($bar) must be of type int, array given, called in %s on line %d diff --git a/Zend/tests/gc_012.phpt b/Zend/tests/gc_012.phpt index 409d2d8f16..4e924eda3b 100644 --- a/Zend/tests/gc_012.phpt +++ b/Zend/tests/gc_012.phpt @@ -13,6 +13,7 @@ var_dump(gc_collect_cycles()); unset($a); var_dump(gc_collect_cycles()); echo "ok\n"; +?> --EXPECT-- int(0) int(1000) diff --git a/Zend/tests/gc_023.phpt b/Zend/tests/gc_023.phpt index 3f1b0f0187..2a5d020655 100644 --- a/Zend/tests/gc_023.phpt +++ b/Zend/tests/gc_023.phpt @@ -21,6 +21,7 @@ var_dump(gc_collect_cycles()); unset($a); // 10000 zvals collected automatic var_dump(gc_collect_cycles()); echo "ok\n"; +?> --EXPECT-- int(0) int(9999) diff --git a/Zend/tests/gc_027.phpt b/Zend/tests/gc_027.phpt index 7f94b82e81..147ccf497f 100644 --- a/Zend/tests/gc_027.phpt +++ b/Zend/tests/gc_027.phpt @@ -10,5 +10,6 @@ try { gc_collect_cycles(); } echo "ok\n"; +?> --EXPECT-- ok diff --git a/Zend/tests/gc_035.phpt b/Zend/tests/gc_035.phpt index 56b4aae866..9118174ceb 100644 --- a/Zend/tests/gc_035.phpt +++ b/Zend/tests/gc_035.phpt @@ -20,6 +20,7 @@ var_dump(gc_collect_cycles()); unset($a); var_dump(gc_collect_cycles()); var_dump(gc_collect_cycles()); +?> --EXPECT-- int(0) int(0) diff --git a/Zend/tests/gc_037.phpt b/Zend/tests/gc_037.phpt index 268f8f184d..e046944ac1 100644 --- a/Zend/tests/gc_037.phpt +++ b/Zend/tests/gc_037.phpt @@ -11,6 +11,7 @@ var_dump(gc_status()); gc_collect_cycles(); gc_collect_cycles(); var_dump(gc_status()); +?> --EXPECT-- array(4) { ["runs"]=> diff --git a/Zend/tests/generators/bug63066.phpt b/Zend/tests/generators/bug63066.phpt index 26ad4e5fcb..bf66904f2e 100644 --- a/Zend/tests/generators/bug63066.phpt +++ b/Zend/tests/generators/bug63066.phpt @@ -10,6 +10,7 @@ function gen($o) foreach(gen(new stdClass()) as $value) echo $value, "\n"; +?> --EXPECTF-- foo diff --git a/Zend/tests/generators/finally/return_yield.phpt b/Zend/tests/generators/finally/return_yield.phpt index c4f3485987..07cfdfa79b 100644 --- a/Zend/tests/generators/finally/return_yield.phpt +++ b/Zend/tests/generators/finally/return_yield.phpt @@ -14,5 +14,6 @@ function foo($f, $t) { foreach (foo(1, 5) as $x) { echo $x, "\n"; } +?> --EXPECT-- 1 diff --git a/Zend/tests/generators/finally/throw_yield.phpt b/Zend/tests/generators/finally/throw_yield.phpt index 6d7d4f5d15..5b7845d605 100644 --- a/Zend/tests/generators/finally/throw_yield.phpt +++ b/Zend/tests/generators/finally/throw_yield.phpt @@ -14,6 +14,7 @@ function foo($f, $t) { foreach (foo(1, 5) as $x) { echo $x, "\n"; } +?> --EXPECTF-- 1 diff --git a/Zend/tests/generators/finally/yield_return.phpt b/Zend/tests/generators/finally/yield_return.phpt index e3e1bec357..6191f389e5 100644 --- a/Zend/tests/generators/finally/yield_return.phpt +++ b/Zend/tests/generators/finally/yield_return.phpt @@ -14,5 +14,6 @@ function foo($f, $t) { foreach (foo(1, 5) as $x) { echo $x, "\n"; } +?> --EXPECT-- 1 diff --git a/Zend/tests/generators/finally/yield_throw.phpt b/Zend/tests/generators/finally/yield_throw.phpt index e191ea0dc1..05b037c54f 100644 --- a/Zend/tests/generators/finally/yield_throw.phpt +++ b/Zend/tests/generators/finally/yield_throw.phpt @@ -14,6 +14,7 @@ function foo($f, $t) { foreach (foo(1, 5) as $x) { echo $x, "\n"; } +?> --EXPECTF-- 1 diff --git a/Zend/tests/generators/finally/yield_yield.phpt b/Zend/tests/generators/finally/yield_yield.phpt index 76610ef1a4..49ed943083 100644 --- a/Zend/tests/generators/finally/yield_yield.phpt +++ b/Zend/tests/generators/finally/yield_yield.phpt @@ -18,5 +18,6 @@ function foo() { foreach (foo() as $x) { echo $x; } +?> --EXPECT-- 1234567 diff --git a/Zend/tests/generators/yield_from_greedy_parse.phpt b/Zend/tests/generators/yield_from_greedy_parse.phpt index 598fb515b4..ba41bd111c 100644 --- a/Zend/tests/generators/yield_from_greedy_parse.phpt +++ b/Zend/tests/generators/yield_from_greedy_parse.phpt @@ -19,6 +19,7 @@ function foo() { foreach (foo() as $value) { var_dump($value); } +?> --EXPECT-- int(42) int(24) diff --git a/Zend/tests/grammar/regression_001.phpt b/Zend/tests/grammar/regression_001.phpt index d559c555e8..144f094c61 100644 --- a/Zend/tests/grammar/regression_001.phpt +++ b/Zend/tests/grammar/regression_001.phpt @@ -22,6 +22,7 @@ Foo:: ); echo "\nDone\n"; +?> --EXPECT-- Foo::function Foo::function diff --git a/Zend/tests/grammar/regression_002.phpt b/Zend/tests/grammar/regression_002.phpt index 52ca62d6ba..38c75abab9 100644 --- a/Zend/tests/grammar/regression_002.phpt +++ b/Zend/tests/grammar/regression_002.phpt @@ -14,6 +14,7 @@ var_dump(Foo:: CLASS); var_dump(Foo:: CLASS); +?> --EXPECT-- string(3) "Foo" string(3) "Foo" diff --git a/Zend/tests/grammar/regression_004.phpt b/Zend/tests/grammar/regression_004.phpt index b820cee1e8..cd41cf01b3 100644 --- a/Zend/tests/grammar/regression_004.phpt +++ b/Zend/tests/grammar/regression_004.phpt @@ -10,5 +10,6 @@ class Obj } function echo(){} // not valid +?> --EXPECTF-- Parse error: syntax error, unexpected token "echo", expecting "(" in %s on line %d diff --git a/Zend/tests/grammar/regression_005.phpt b/Zend/tests/grammar/regression_005.phpt index 2735829f2c..4cda26c322 100644 --- a/Zend/tests/grammar/regression_005.phpt +++ b/Zend/tests/grammar/regression_005.phpt @@ -9,5 +9,6 @@ class Obj } const return = 'nope'; +?> --EXPECTF-- Parse error: syntax error, unexpected token "return", expecting identifier in %s on line %d diff --git a/Zend/tests/grammar/regression_006.phpt b/Zend/tests/grammar/regression_006.phpt index 072148ca56..64d1cd3dcc 100644 --- a/Zend/tests/grammar/regression_006.phpt +++ b/Zend/tests/grammar/regression_006.phpt @@ -19,6 +19,7 @@ echo Obj:: USE, PHP_EOL; echo "\nDone\n"; +?> --EXPECT-- declare return diff --git a/Zend/tests/grammar/regression_007.phpt b/Zend/tests/grammar/regression_007.phpt index b691ccaef9..15c9f1fddc 100644 --- a/Zend/tests/grammar/regression_007.phpt +++ b/Zend/tests/grammar/regression_007.phpt @@ -28,6 +28,7 @@ Foo::{'new'}(); var_dump(Foo::use); echo "\nDone\n"; +?> --EXPECT-- Foo::new Foo::new diff --git a/Zend/tests/grammar/regression_008.phpt b/Zend/tests/grammar/regression_008.phpt index 57ae510722..15d5a3c0ed 100644 --- a/Zend/tests/grammar/regression_008.phpt +++ b/Zend/tests/grammar/regression_008.phpt @@ -12,6 +12,7 @@ $friday = new Friday; echo "$friday->require ($friday->require) {$friday->require}", PHP_EOL; echo "\nDone\n"; +?> --EXPECT-- fun (fun) fun diff --git a/Zend/tests/grammar/regression_009.phpt b/Zend/tests/grammar/regression_009.phpt index 45fc81bcb8..c1fd1fb72c 100644 --- a/Zend/tests/grammar/regression_009.phpt +++ b/Zend/tests/grammar/regression_009.phpt @@ -12,5 +12,6 @@ class Foo } echo PHP_EOL, "Done", PHP_EOL; +?> --EXPECT-- Done diff --git a/Zend/tests/grammar/semi_reserved_001.phpt b/Zend/tests/grammar/semi_reserved_001.phpt index bbb8ccdede..2de8e901ef 100644 --- a/Zend/tests/grammar/semi_reserved_001.phpt +++ b/Zend/tests/grammar/semi_reserved_001.phpt @@ -163,6 +163,7 @@ $obj->__DIR__(); $obj->__NAMESPACE__(); echo "\nDone\n"; +?> --EXPECT-- Obj::empty Obj::callable diff --git a/Zend/tests/grammar/semi_reserved_002.phpt b/Zend/tests/grammar/semi_reserved_002.phpt index 59cd97479e..db780f9706 100644 --- a/Zend/tests/grammar/semi_reserved_002.phpt +++ b/Zend/tests/grammar/semi_reserved_002.phpt @@ -161,6 +161,7 @@ Obj::__DIR__(); Obj::__NAMESPACE__(); echo "\nDone\n"; +?> --EXPECT-- Obj::empty Obj::callable diff --git a/Zend/tests/grammar/semi_reserved_004.phpt b/Zend/tests/grammar/semi_reserved_004.phpt index 2ab1f3139e..63a13d145b 100644 --- a/Zend/tests/grammar/semi_reserved_004.phpt +++ b/Zend/tests/grammar/semi_reserved_004.phpt @@ -163,6 +163,7 @@ echo Obj::$__NAMESPACE__, PHP_EOL; echo Obj::$__halt_compiler, PHP_EOL; echo "\nDone\n"; +?> --EXPECT-- empty callable diff --git a/Zend/tests/grammar/semi_reserved_005.phpt b/Zend/tests/grammar/semi_reserved_005.phpt index 3e74024ecc..4a9a19e118 100644 --- a/Zend/tests/grammar/semi_reserved_005.phpt +++ b/Zend/tests/grammar/semi_reserved_005.phpt @@ -159,6 +159,7 @@ echo Obj::__DIR__, PHP_EOL; echo Obj::__NAMESPACE__, PHP_EOL; echo "\nDone\n"; +?> --EXPECT-- empty callable diff --git a/Zend/tests/grammar/semi_reserved_006.phpt b/Zend/tests/grammar/semi_reserved_006.phpt index 634ba51285..02afae0bb0 100644 --- a/Zend/tests/grammar/semi_reserved_006.phpt +++ b/Zend/tests/grammar/semi_reserved_006.phpt @@ -58,6 +58,7 @@ Foo::byebye(); Foo::farewell(); echo "\nDone\n"; +?> --EXPECT-- TraitA::catch TraitA::list diff --git a/Zend/tests/grammar/semi_reserved_007.phpt b/Zend/tests/grammar/semi_reserved_007.phpt index 64e55a8e2a..5c90199b3a 100644 --- a/Zend/tests/grammar/semi_reserved_007.phpt +++ b/Zend/tests/grammar/semi_reserved_007.phpt @@ -25,6 +25,7 @@ class Bar extends Foo { new Bar; echo "\nDone\n"; +?> --EXPECT-- From Foo::__construct: self diff --git a/Zend/tests/grammar/semi_reserved_008.phpt b/Zend/tests/grammar/semi_reserved_008.phpt index fe478323f8..83828170ca 100644 --- a/Zend/tests/grammar/semi_reserved_008.phpt +++ b/Zend/tests/grammar/semi_reserved_008.phpt @@ -61,6 +61,7 @@ Foo /**/ attempt(); echo PHP_EOL, "Done", PHP_EOL; +?> --EXPECT-- TraitB::try diff --git a/Zend/tests/grammar/semi_reserved_009.phpt b/Zend/tests/grammar/semi_reserved_009.phpt index 98ff4ee8f0..6f0622bc30 100644 --- a/Zend/tests/grammar/semi_reserved_009.phpt +++ b/Zend/tests/grammar/semi_reserved_009.phpt @@ -18,6 +18,7 @@ class Foo Foo::try(); echo PHP_EOL, "Done", PHP_EOL; +?> --EXPECT-- TraitA::as diff --git a/Zend/tests/grammar/semi_reserved_010.phpt b/Zend/tests/grammar/semi_reserved_010.phpt index 951db73b85..38c0d55f70 100644 --- a/Zend/tests/grammar/semi_reserved_010.phpt +++ b/Zend/tests/grammar/semi_reserved_010.phpt @@ -24,6 +24,7 @@ class Foo Foo::insteadof(); echo PHP_EOL, "Done", PHP_EOL; +?> --EXPECT-- TraitB::insteadof diff --git a/Zend/tests/halt01.phpt b/Zend/tests/halt01.phpt index 3af80d07a8..375170ce45 100644 --- a/Zend/tests/halt01.phpt +++ b/Zend/tests/halt01.phpt @@ -8,5 +8,6 @@ print "yo!\n"; __HALT_COMPILER(); none of this should be displayed! +?> --EXPECT-- yo! diff --git a/Zend/tests/halt03.phpt b/Zend/tests/halt03.phpt index deacebe4ab..bbc28dc78e 100644 --- a/Zend/tests/halt03.phpt +++ b/Zend/tests/halt03.phpt @@ -6,5 +6,6 @@ __HALT_COMPILER() basic test if (true) { __HALT_COMPILER(); } +?> --EXPECTF-- Fatal error: __HALT_COMPILER() can only be used from the outermost scope in %shalt03.php on line %d diff --git a/Zend/tests/halt_compiler5.phpt b/Zend/tests/halt_compiler5.phpt index 8f0364a944..7b21c4b06c 100644 --- a/Zend/tests/halt_compiler5.phpt +++ b/Zend/tests/halt_compiler5.phpt @@ -4,6 +4,7 @@ Using __COMPILER_HALF_OFFSET__ with trailing {} (OSS-Fuzz #17895) <?php __COMPILER_HALT_OFFSET__; {} +?> --EXPECTF-- Fatal error: Uncaught Error: Undefined constant "__COMPILER_HALT_OFFSET__" in %s:%d Stack trace: diff --git a/Zend/tests/jump17.phpt b/Zend/tests/jump17.phpt index 62bcaef823..64f7721fef 100644 --- a/Zend/tests/jump17.phpt +++ b/Zend/tests/jump17.phpt @@ -18,5 +18,6 @@ c: echo "6"; } echo "7\n"; +?> --EXPECT-- 4567 diff --git a/Zend/tests/lsb_008.phpt b/Zend/tests/lsb_008.phpt index 79f906bd7e..02bc93fa86 100644 --- a/Zend/tests/lsb_008.phpt +++ b/Zend/tests/lsb_008.phpt @@ -4,5 +4,6 @@ ZE2 Late Static Binding class name "static" <?php class static { } +?> --EXPECTF-- Parse error: %s error,%sexpecting %s in %s on line %d diff --git a/Zend/tests/lsb_009.phpt b/Zend/tests/lsb_009.phpt index 9b1686391b..0a72130ff2 100644 --- a/Zend/tests/lsb_009.phpt +++ b/Zend/tests/lsb_009.phpt @@ -4,5 +4,6 @@ ZE2 Late Static Binding interface name "static" <?php interface static { } +?> --EXPECTF-- Parse error: %s error,%sexpecting %s in %s on line %d diff --git a/Zend/tests/lsb_022.phpt b/Zend/tests/lsb_022.phpt index da918f8b26..e2a405c53e 100644 --- a/Zend/tests/lsb_022.phpt +++ b/Zend/tests/lsb_022.phpt @@ -23,6 +23,7 @@ class B extends A { } } B::foo(); +?> --EXPECT-- B B diff --git a/Zend/tests/method_static_var.phpt b/Zend/tests/method_static_var.phpt index 438982bd71..b419647517 100644 --- a/Zend/tests/method_static_var.phpt +++ b/Zend/tests/method_static_var.phpt @@ -23,6 +23,7 @@ foo::test(); */ Bar::test(); Bar::test(); +?> --EXPECT-- int(1) int(2) diff --git a/Zend/tests/multibyte/bug68665.phpt b/Zend/tests/multibyte/bug68665.phpt index f770118ad4..a648a7f9af 100644 --- a/Zend/tests/multibyte/bug68665.phpt +++ b/Zend/tests/multibyte/bug68665.phpt @@ -13,6 +13,5 @@ internal_encoding=big5 <?php echo '\'hello'; ?> - --EXPECT-- 'hello diff --git a/Zend/tests/name_collision_07.phpt b/Zend/tests/name_collision_07.phpt index bc596a3549..cb35e88db6 100644 --- a/Zend/tests/name_collision_07.phpt +++ b/Zend/tests/name_collision_07.phpt @@ -11,5 +11,6 @@ namespace Bazzle { use Foo\Bar; class Bar {} } +?> --EXPECTF-- Fatal error: Cannot declare class Bazzle\Bar because the name is already in use in %s on line %d diff --git a/Zend/tests/name_collision_08.phpt b/Zend/tests/name_collision_08.phpt index d897419102..652fa3dbf1 100644 --- a/Zend/tests/name_collision_08.phpt +++ b/Zend/tests/name_collision_08.phpt @@ -11,5 +11,6 @@ namespace Bazzle { use function Foo\bar; function bar() {} } +?> --EXPECTF-- Fatal error: Cannot declare function Bazzle\bar because the name is already in use in %s on line %d diff --git a/Zend/tests/name_collision_09.phpt b/Zend/tests/name_collision_09.phpt index b46459eef6..88d4d55fc8 100644 --- a/Zend/tests/name_collision_09.phpt +++ b/Zend/tests/name_collision_09.phpt @@ -11,5 +11,6 @@ namespace Bazzle { use const Foo\BAR; const BAR = 24; } +?> --EXPECTF-- Fatal error: Cannot declare const Bazzle\BAR because the name is already in use in %s on line %d diff --git a/Zend/tests/ns_001.phpt b/Zend/tests/ns_001.phpt index 100dbe50e9..ef12ce5aaf 100644 --- a/Zend/tests/ns_001.phpt +++ b/Zend/tests/ns_001.phpt @@ -25,6 +25,7 @@ Foo::baz(); $y = new \test\ns1\Foo; $y->bar(); \test\ns1\Foo::baz(); +?> --EXPECT-- test\ns1\Foo test\ns1\Foo diff --git a/Zend/tests/ns_002.phpt b/Zend/tests/ns_002.phpt index 3d9e09869d..fa937d4421 100644 --- a/Zend/tests/ns_002.phpt +++ b/Zend/tests/ns_002.phpt @@ -19,6 +19,7 @@ Foo::bar(); Bar::bar(); ns2\Foo::bar(); ns1\Foo::bar(); +?> --EXPECT-- test\ns1\Foo test\ns1\Foo diff --git a/Zend/tests/ns_003.phpt b/Zend/tests/ns_003.phpt index 4372722c25..5cc0c64441 100644 --- a/Zend/tests/ns_003.phpt +++ b/Zend/tests/ns_003.phpt @@ -8,5 +8,6 @@ class Exception { } echo get_class(new Exception()),"\n"; +?> --EXPECT-- test\ns1\Exception diff --git a/Zend/tests/ns_004.phpt b/Zend/tests/ns_004.phpt index 2acc7622de..1c2395351b 100644 --- a/Zend/tests/ns_004.phpt +++ b/Zend/tests/ns_004.phpt @@ -5,6 +5,7 @@ namespace test\ns1; echo get_class(new Exception()),"\n"; +?> --EXPECTF-- Fatal error: Uncaught Error: Class "test\ns1\Exception" not found in %s:%d Stack trace: diff --git a/Zend/tests/ns_005.phpt b/Zend/tests/ns_005.phpt index c082afc481..b2d3b98682 100644 --- a/Zend/tests/ns_005.phpt +++ b/Zend/tests/ns_005.phpt @@ -8,5 +8,6 @@ class Exception { } echo get_class(new \Exception()),"\n"; +?> --EXPECT-- Exception diff --git a/Zend/tests/ns_006.phpt b/Zend/tests/ns_006.phpt index 1c0ec3ab08..60a4702c0f 100644 --- a/Zend/tests/ns_006.phpt +++ b/Zend/tests/ns_006.phpt @@ -9,5 +9,6 @@ class Exception { $x = "test\\ns1\\Exception"; echo get_class(new $x),"\n"; +?> --EXPECT-- test\ns1\Exception diff --git a/Zend/tests/ns_007.phpt b/Zend/tests/ns_007.phpt index 2f4d1361dc..9d3e201b9f 100644 --- a/Zend/tests/ns_007.phpt +++ b/Zend/tests/ns_007.phpt @@ -9,5 +9,6 @@ class Exception { $x = "Exception"; echo get_class(new $x),"\n"; +?> --EXPECT-- Exception diff --git a/Zend/tests/ns_008.phpt b/Zend/tests/ns_008.phpt index a0ae4e2d8f..0be955b2b2 100644 --- a/Zend/tests/ns_008.phpt +++ b/Zend/tests/ns_008.phpt @@ -9,5 +9,6 @@ class foo { $x = __NAMESPACE__ . "\\foo"; echo get_class(new $x),"\n"; +?> --EXPECT-- test\foo diff --git a/Zend/tests/ns_009.phpt b/Zend/tests/ns_009.phpt index 21d2f00cc0..c5a76f69a4 100644 --- a/Zend/tests/ns_009.phpt +++ b/Zend/tests/ns_009.phpt @@ -7,5 +7,6 @@ class foo { $x = __NAMESPACE__ . "\\foo"; echo get_class(new $x),"\n"; +?> --EXPECT-- foo diff --git a/Zend/tests/ns_010.phpt b/Zend/tests/ns_010.phpt index 9364f89a12..d718f7cc5b 100644 --- a/Zend/tests/ns_010.phpt +++ b/Zend/tests/ns_010.phpt @@ -26,6 +26,7 @@ echo \X\Foo::C; echo Foo::$var; echo Y\Foo::$var; echo \X\Foo::$var; +?> --EXPECT-- class ok class ok diff --git a/Zend/tests/ns_011.phpt b/Zend/tests/ns_011.phpt index 7aa6270a1c..900b9e5764 100644 --- a/Zend/tests/ns_011.phpt +++ b/Zend/tests/ns_011.phpt @@ -16,6 +16,7 @@ bar(); function bar() { echo __FUNCTION__,"\n"; } +?> --EXPECT-- test\ns1\foo test\ns1\foo diff --git a/Zend/tests/ns_012.phpt b/Zend/tests/ns_012.phpt index 210cba9065..186f056f6a 100644 --- a/Zend/tests/ns_012.phpt +++ b/Zend/tests/ns_012.phpt @@ -23,6 +23,7 @@ ns3\ns1\bar(); function bar() { echo __FUNCTION__,"\n"; } +?> --EXPECT-- test\ns1\foo test\ns1\bar diff --git a/Zend/tests/ns_013.phpt b/Zend/tests/ns_013.phpt index 063e27930c..f268fe2f96 100644 --- a/Zend/tests/ns_013.phpt +++ b/Zend/tests/ns_013.phpt @@ -9,5 +9,6 @@ function strlen($x) { } echo strlen("Hello"),"\n"; +?> --EXPECT-- test\ns1\strlen diff --git a/Zend/tests/ns_014.phpt b/Zend/tests/ns_014.phpt index 6bcab51c83..547bd998d4 100644 --- a/Zend/tests/ns_014.phpt +++ b/Zend/tests/ns_014.phpt @@ -5,5 +5,6 @@ namespace test\ns1; echo strlen("Hello"),"\n"; +?> --EXPECT-- 5 diff --git a/Zend/tests/ns_015.phpt b/Zend/tests/ns_015.phpt index 7c954c2af3..cbbcc94b36 100644 --- a/Zend/tests/ns_015.phpt +++ b/Zend/tests/ns_015.phpt @@ -9,5 +9,6 @@ function strlen($x) { } echo \strlen("Hello"),"\n"; +?> --EXPECT-- 5 diff --git a/Zend/tests/ns_016.phpt b/Zend/tests/ns_016.phpt index 19942cfacf..87682d485a 100644 --- a/Zend/tests/ns_016.phpt +++ b/Zend/tests/ns_016.phpt @@ -10,5 +10,6 @@ function strlen($x) { $x = "test\\ns1\\strlen"; echo $x("Hello"),"\n"; +?> --EXPECT-- test\ns1\strlen diff --git a/Zend/tests/ns_017.phpt b/Zend/tests/ns_017.phpt index 1cb8ac2eb5..886a7394f0 100644 --- a/Zend/tests/ns_017.phpt +++ b/Zend/tests/ns_017.phpt @@ -10,5 +10,6 @@ function strlen($x) { $x = "strlen"; echo $x("Hello"),"\n"; +?> --EXPECT-- 5 diff --git a/Zend/tests/ns_018.phpt b/Zend/tests/ns_018.phpt index 2ef8d104f2..d420a862d3 100644 --- a/Zend/tests/ns_018.phpt +++ b/Zend/tests/ns_018.phpt @@ -10,5 +10,6 @@ function foo() { $x = __NAMESPACE__ . "\\foo"; echo $x(),"\n"; +?> --EXPECT-- test\foo diff --git a/Zend/tests/ns_019.phpt b/Zend/tests/ns_019.phpt index 1fa1e227ba..8b06809072 100644 --- a/Zend/tests/ns_019.phpt +++ b/Zend/tests/ns_019.phpt @@ -8,5 +8,6 @@ function foo() { $x = __NAMESPACE__ . "\\foo"; echo $x(),"\n"; +?> --EXPECT-- foo diff --git a/Zend/tests/ns_020.phpt b/Zend/tests/ns_020.phpt index 7915683d6a..268fd5b692 100644 --- a/Zend/tests/ns_020.phpt +++ b/Zend/tests/ns_020.phpt @@ -11,6 +11,7 @@ foo(); \X\foo(); Y\foo(); \X\foo(); +?> --EXPECT-- X\foo X\foo diff --git a/Zend/tests/ns_021.phpt b/Zend/tests/ns_021.phpt index 5c160e7d07..3537488149 100644 --- a/Zend/tests/ns_021.phpt +++ b/Zend/tests/ns_021.phpt @@ -17,6 +17,7 @@ function foo() { foo(); \test\foo(); \test\test::foo(); +?> --EXPECT-- test\foo test\foo diff --git a/Zend/tests/ns_022.phpt b/Zend/tests/ns_022.phpt index bcddaa0a7c..27b4b3df24 100644 --- a/Zend/tests/ns_022.phpt +++ b/Zend/tests/ns_022.phpt @@ -14,6 +14,7 @@ function foo() { test\foo(); \test::foo(); +?> --EXPECT-- a\b\c\foo Test::foo diff --git a/Zend/tests/ns_023.phpt b/Zend/tests/ns_023.phpt index 34fbb56f2a..ed9c3e52de 100644 --- a/Zend/tests/ns_023.phpt +++ b/Zend/tests/ns_023.phpt @@ -5,5 +5,6 @@ namespace test\foo; var_dump(__NAMESPACE__); +?> --EXPECT-- string(8) "test\foo" diff --git a/Zend/tests/ns_024.phpt b/Zend/tests/ns_024.phpt index 019a89c470..4a6e72f326 100644 --- a/Zend/tests/ns_024.phpt +++ b/Zend/tests/ns_024.phpt @@ -3,5 +3,6 @@ --FILE-- <?php var_dump(__NAMESPACE__); +?> --EXPECT-- string(0) "" diff --git a/Zend/tests/ns_025.phpt b/Zend/tests/ns_025.phpt index 44e90de5d1..4742b45e9e 100644 --- a/Zend/tests/ns_025.phpt +++ b/Zend/tests/ns_025.phpt @@ -17,6 +17,7 @@ $x = new Foo; Foo::Bar(); $x = new \Foo\Bar\Foo; \Foo\Bar\Foo::Bar(); +?> --EXPECT-- Foo\Bar\Foo Foo\Bar\Foo diff --git a/Zend/tests/ns_026.phpt b/Zend/tests/ns_026.phpt index 83bbf618f9..6d7502d8cd 100644 --- a/Zend/tests/ns_026.phpt +++ b/Zend/tests/ns_026.phpt @@ -25,6 +25,7 @@ $x = new \Foo\Foo; \Foo\Foo::Bar(); \Foo\Bar(); Foo\Bar(); +?> --EXPECTF-- Method - Foo\Foo::__construct Func - Foo\Bar diff --git a/Zend/tests/ns_027.phpt b/Zend/tests/ns_027.phpt index 9035b4ecd2..574cc4b0fa 100644 --- a/Zend/tests/ns_027.phpt +++ b/Zend/tests/ns_027.phpt @@ -17,6 +17,7 @@ $x = new Foo; Foo::Bar(); $x = new Foo\Bar\Foo; Foo\Bar\Foo::Bar(); +?> --EXPECT-- Foo Foo diff --git a/Zend/tests/ns_028.phpt b/Zend/tests/ns_028.phpt index 37abf5064d..ea5eafebc4 100644 --- a/Zend/tests/ns_028.phpt +++ b/Zend/tests/ns_028.phpt @@ -18,6 +18,7 @@ Foo\Bar(); $x = new Foo\Foo; Foo\Foo::Bar(); \Foo\Bar(); +?> --EXPECT-- Method - Foo::__construct Func - Foo\Bar diff --git a/Zend/tests/ns_029.phpt b/Zend/tests/ns_029.phpt index f1aa954ae3..d053a9a337 100644 --- a/Zend/tests/ns_029.phpt +++ b/Zend/tests/ns_029.phpt @@ -8,5 +8,6 @@ class Foo { } new Foo(); +?> --EXPECTF-- Fatal error: Cannot declare class Foo because the name is already in use in %sns_029.php on line 4 diff --git a/Zend/tests/ns_030.phpt b/Zend/tests/ns_030.phpt index 69724159ee..d275bc23cc 100644 --- a/Zend/tests/ns_030.phpt +++ b/Zend/tests/ns_030.phpt @@ -8,5 +8,6 @@ class Foo { use A\B as Foo; new Foo(); +?> --EXPECTF-- Fatal error: Cannot use A\B as Foo because the name is already in use in %sns_030.php on line 5 diff --git a/Zend/tests/ns_031.phpt b/Zend/tests/ns_031.phpt index 0459ee207e..71465a232e 100644 --- a/Zend/tests/ns_031.phpt +++ b/Zend/tests/ns_031.phpt @@ -16,6 +16,7 @@ function foo() { call_user_func(__NAMESPACE__."\\foo"); call_user_func(__NAMESPACE__."\\test::foo"); +?> --EXPECT-- test\foo test\Test::foo diff --git a/Zend/tests/ns_032.phpt b/Zend/tests/ns_032.phpt index 290afe141e..562495dd57 100644 --- a/Zend/tests/ns_032.phpt +++ b/Zend/tests/ns_032.phpt @@ -14,6 +14,7 @@ function foo() { call_user_func(__NAMESPACE__."\\foo"); call_user_func(__NAMESPACE__."\\test::foo"); +?> --EXPECT-- foo Test::foo diff --git a/Zend/tests/ns_033.phpt b/Zend/tests/ns_033.phpt index ba40683002..39bcf80916 100644 --- a/Zend/tests/ns_033.phpt +++ b/Zend/tests/ns_033.phpt @@ -4,6 +4,7 @@ <?php use A; use \B; +?> --EXPECTF-- Warning: The use statement with non-compound name 'A' has no effect in %sns_033.php on line 2 diff --git a/Zend/tests/ns_034.phpt b/Zend/tests/ns_034.phpt index bba26b3baa..7828dadad2 100644 --- a/Zend/tests/ns_034.phpt +++ b/Zend/tests/ns_034.phpt @@ -22,6 +22,7 @@ echo \A\Foo::C; f1(); f2(); f3(); +?> --EXPECT-- ok ok diff --git a/Zend/tests/ns_037.phpt b/Zend/tests/ns_037.phpt index db649d6739..88aec27c57 100644 --- a/Zend/tests/ns_037.phpt +++ b/Zend/tests/ns_037.phpt @@ -26,6 +26,7 @@ echo \X\X::C; echo X::$var; echo Y\X::$var; echo \X\X::$var; +?> --EXPECT-- class ok class ok diff --git a/Zend/tests/ns_038.phpt b/Zend/tests/ns_038.phpt index 1cf824b4cb..c5ac087348 100644 --- a/Zend/tests/ns_038.phpt +++ b/Zend/tests/ns_038.phpt @@ -8,6 +8,7 @@ function foo() { } \Exception\foo(); \Exception::bar(); +?> --EXPECTF-- ok diff --git a/Zend/tests/ns_039.phpt b/Zend/tests/ns_039.phpt index fa40d9b016..64cd85a0f3 100644 --- a/Zend/tests/ns_039.phpt +++ b/Zend/tests/ns_039.phpt @@ -17,6 +17,7 @@ echo A . "\n"; echo B . "\n"; foo(); bar(); +?> --EXPECT-- ok ok diff --git a/Zend/tests/ns_040.phpt b/Zend/tests/ns_040.phpt index f5b9942c12..ac776e13b7 100644 --- a/Zend/tests/ns_040.phpt +++ b/Zend/tests/ns_040.phpt @@ -43,6 +43,7 @@ f5(); f6(); f7(); f8(); +?> --EXPECT-- ok ok diff --git a/Zend/tests/ns_041.phpt b/Zend/tests/ns_041.phpt index 09398ec35c..a77b74eaf5 100644 --- a/Zend/tests/ns_041.phpt +++ b/Zend/tests/ns_041.phpt @@ -12,6 +12,7 @@ echo(\test\ns1\FOO); echo(BAR); const BAR = "ok\n"; +?> --EXPECTF-- ok ok diff --git a/Zend/tests/ns_042.phpt b/Zend/tests/ns_042.phpt index ba420a7c80..3ab9bc8cd3 100644 --- a/Zend/tests/ns_042.phpt +++ b/Zend/tests/ns_042.phpt @@ -14,6 +14,7 @@ echo \test\ns1\FOO; echo \test\ns1\FOO; echo ns2\FOO; echo ns3\ns1\FOO; +?> --EXPECT-- ok ok diff --git a/Zend/tests/ns_043.phpt b/Zend/tests/ns_043.phpt index bd5ee7440b..efd24156ca 100644 --- a/Zend/tests/ns_043.phpt +++ b/Zend/tests/ns_043.phpt @@ -7,5 +7,6 @@ namespace test\ns1; const INI_ALL = 0; var_dump(INI_ALL); +?> --EXPECT-- int(0) diff --git a/Zend/tests/ns_044.phpt b/Zend/tests/ns_044.phpt index dbdee2e523..89c426c774 100644 --- a/Zend/tests/ns_044.phpt +++ b/Zend/tests/ns_044.phpt @@ -5,5 +5,6 @@ namespace test\ns1; var_dump(INI_ALL); +?> --EXPECT-- int(7) diff --git a/Zend/tests/ns_045.phpt b/Zend/tests/ns_045.phpt index d45f9cf99d..7a301bbcb1 100644 --- a/Zend/tests/ns_045.phpt +++ b/Zend/tests/ns_045.phpt @@ -7,5 +7,6 @@ namespace test\ns1; const INI_ALL = 0; var_dump(\INI_ALL); +?> --EXPECT-- int(7) diff --git a/Zend/tests/ns_046.phpt b/Zend/tests/ns_046.phpt index d5203f14dc..1b04bd2ff2 100644 --- a/Zend/tests/ns_046.phpt +++ b/Zend/tests/ns_046.phpt @@ -7,5 +7,6 @@ namespace test\ns1; const INI_ALL = 0; var_dump(constant("test\\ns1\\INI_ALL")); +?> --EXPECT-- int(0) diff --git a/Zend/tests/ns_047.phpt b/Zend/tests/ns_047.phpt index 73e32a0de7..edbd33e1a6 100644 --- a/Zend/tests/ns_047.phpt +++ b/Zend/tests/ns_047.phpt @@ -7,5 +7,6 @@ namespace test\ns1; const INI_ALL = 0; var_dump(constant("INI_ALL")); +?> --EXPECT-- int(7) diff --git a/Zend/tests/ns_048.phpt b/Zend/tests/ns_048.phpt index db21f89103..ac9e5c2d50 100644 --- a/Zend/tests/ns_048.phpt +++ b/Zend/tests/ns_048.phpt @@ -7,5 +7,6 @@ namespace test\ns1; const FOO = 0; var_dump(constant(__NAMESPACE__ . "\\FOO")); +?> --EXPECT-- int(0) diff --git a/Zend/tests/ns_049.phpt b/Zend/tests/ns_049.phpt index 91e516579b..1a9f3d8d7b 100644 --- a/Zend/tests/ns_049.phpt +++ b/Zend/tests/ns_049.phpt @@ -5,5 +5,6 @@ const FOO = 0; var_dump(constant(__NAMESPACE__ . "\\FOO")); +?> --EXPECT-- int(0) diff --git a/Zend/tests/ns_050.phpt b/Zend/tests/ns_050.phpt index e7cc750a2b..33be1b7f24 100644 --- a/Zend/tests/ns_050.phpt +++ b/Zend/tests/ns_050.phpt @@ -10,5 +10,6 @@ function foo($x = INI_ALL) { var_dump($x); } foo(); +?> --EXPECT-- int(0) diff --git a/Zend/tests/ns_051.phpt b/Zend/tests/ns_051.phpt index ee8c369a3c..1cb6b00db0 100644 --- a/Zend/tests/ns_051.phpt +++ b/Zend/tests/ns_051.phpt @@ -8,5 +8,6 @@ function foo($x = INI_ALL) { var_dump($x); } foo(); +?> --EXPECT-- int(7) diff --git a/Zend/tests/ns_052.phpt b/Zend/tests/ns_052.phpt index 06700d948d..fdd04163a7 100644 --- a/Zend/tests/ns_052.phpt +++ b/Zend/tests/ns_052.phpt @@ -10,5 +10,6 @@ function foo($x = \INI_ALL) { var_dump($x); } foo(); +?> --EXPECT-- int(7) diff --git a/Zend/tests/ns_053.phpt b/Zend/tests/ns_053.phpt index dd3ff76693..56e408eec4 100644 --- a/Zend/tests/ns_053.phpt +++ b/Zend/tests/ns_053.phpt @@ -7,6 +7,7 @@ namespace test\ns1; define(__NAMESPACE__ . '\\NAME', basename(__FILE__)); echo NAME."\n"; echo \test\ns1\NAME."\n"; +?> --EXPECT-- ns_053.php ns_053.php diff --git a/Zend/tests/ns_059.phpt b/Zend/tests/ns_059.phpt index 87f1ea2ac9..c6aabb583c 100644 --- a/Zend/tests/ns_059.phpt +++ b/Zend/tests/ns_059.phpt @@ -4,6 +4,7 @@ <?php const C = array(); var_dump(C); +?> --EXPECT-- array(0) { } diff --git a/Zend/tests/ns_060.phpt b/Zend/tests/ns_060.phpt index 16c8024f00..fac600fd7d 100644 --- a/Zend/tests/ns_060.phpt +++ b/Zend/tests/ns_060.phpt @@ -16,6 +16,7 @@ $b = new A; echo get_class($a)."\n"; echo get_class($b)."\n"; class A {} +?> --EXPECT-- Bar\A Foo\A diff --git a/Zend/tests/ns_061.phpt b/Zend/tests/ns_061.phpt index 948f675d6d..ecd3ccea1c 100644 --- a/Zend/tests/ns_061.phpt +++ b/Zend/tests/ns_061.phpt @@ -5,5 +5,6 @@ class A {} use \A as B; echo get_class(new B)."\n"; +?> --EXPECT-- A diff --git a/Zend/tests/ns_062.phpt b/Zend/tests/ns_062.phpt index d795da4c68..89d0581ae6 100644 --- a/Zend/tests/ns_062.phpt +++ b/Zend/tests/ns_062.phpt @@ -7,6 +7,7 @@ use \stdClass; use \stdClass as A; echo get_class(new stdClass)."\n"; echo get_class(new A)."\n"; +?> --EXPECT-- stdClass stdClass diff --git a/Zend/tests/ns_065.phpt b/Zend/tests/ns_065.phpt index 40ccd1e153..d8a0d641fe 100644 --- a/Zend/tests/ns_065.phpt +++ b/Zend/tests/ns_065.phpt @@ -8,6 +8,7 @@ require "ns_065.inc"; test\foo(); test2\foo(); +?> --EXPECT-- X\Y\foo X\Z\foo diff --git a/Zend/tests/ns_066.phpt b/Zend/tests/ns_066.phpt index 881589cf2c..8ec5c222ab 100644 --- a/Zend/tests/ns_066.phpt +++ b/Zend/tests/ns_066.phpt @@ -6,5 +6,6 @@ include __DIR__ . '/ns_027.inc'; use Foo\Bar\Foo as stdClass; new stdClass(); +?> --EXPECT-- Foo\Bar\Foo diff --git a/Zend/tests/ns_067.phpt b/Zend/tests/ns_067.phpt index b94eb30ead..73a9390b40 100644 --- a/Zend/tests/ns_067.phpt +++ b/Zend/tests/ns_067.phpt @@ -5,5 +5,6 @@ include __DIR__ . '/ns_022.inc'; include __DIR__ . '/ns_027.inc'; include __DIR__ . '/ns_067.inc'; +?> --EXPECT-- Foo\Bar\Foo diff --git a/Zend/tests/ns_075.phpt b/Zend/tests/ns_075.phpt index 0156e99eb4..617e7777ff 100644 --- a/Zend/tests/ns_075.phpt +++ b/Zend/tests/ns_075.phpt @@ -6,5 +6,6 @@ namespace foo; const NULL = 1; echo NULL; +?> --EXPECTF-- Fatal error: Cannot redeclare constant 'NULL' in %sns_075.php on line %d diff --git a/Zend/tests/ns_077_1.phpt b/Zend/tests/ns_077_1.phpt index 7d4b6753bf..bbd39bd4bf 100644 --- a/Zend/tests/ns_077_1.phpt +++ b/Zend/tests/ns_077_1.phpt @@ -9,6 +9,7 @@ function foo($a = array(0 => \unknown)) } foo(); +?> --EXPECTF-- Fatal error: Uncaught Error: Undefined constant "unknown" in %s:%d Stack trace: diff --git a/Zend/tests/ns_077_2.phpt b/Zend/tests/ns_077_2.phpt index 42222b7295..6b2b297ef6 100644 --- a/Zend/tests/ns_077_2.phpt +++ b/Zend/tests/ns_077_2.phpt @@ -9,6 +9,7 @@ function foo($a = array(\unknown => unknown)) } foo(); +?> --EXPECTF-- Fatal error: Uncaught Error: Undefined constant "unknown" in %s:%d Stack trace: diff --git a/Zend/tests/ns_077_3.phpt b/Zend/tests/ns_077_3.phpt index 9abaa13c04..4f3834acaa 100644 --- a/Zend/tests/ns_077_3.phpt +++ b/Zend/tests/ns_077_3.phpt @@ -9,6 +9,7 @@ function foo($a = array(namespace\unknown => unknown)) } foo(); +?> --EXPECTF-- Fatal error: Uncaught Error: Undefined constant "foo\unknown" in %s:%d Stack trace: diff --git a/Zend/tests/ns_077_4.phpt b/Zend/tests/ns_077_4.phpt index 00ad71c988..74c2d9eae7 100644 --- a/Zend/tests/ns_077_4.phpt +++ b/Zend/tests/ns_077_4.phpt @@ -9,6 +9,7 @@ function foo($a = array(0 => namespace\unknown)) } foo(); +?> --EXPECTF-- Fatal error: Uncaught Error: Undefined constant "foo\unknown" in %s:%d Stack trace: diff --git a/Zend/tests/ns_077_5.phpt b/Zend/tests/ns_077_5.phpt index ed6e0087a8..8ea77a8dab 100644 --- a/Zend/tests/ns_077_5.phpt +++ b/Zend/tests/ns_077_5.phpt @@ -8,6 +8,7 @@ function foo($a = array(0 => \unknown)) } foo(); +?> --EXPECTF-- Fatal error: Uncaught Error: Undefined constant "unknown" in %s:%d Stack trace: diff --git a/Zend/tests/ns_077_7.phpt b/Zend/tests/ns_077_7.phpt index 84f06565f2..43a647c608 100644 --- a/Zend/tests/ns_077_7.phpt +++ b/Zend/tests/ns_077_7.phpt @@ -8,6 +8,7 @@ function foo($a = array(0 => namespace\unknown)) } foo(); +?> --EXPECTF-- Fatal error: Uncaught Error: Undefined constant "unknown" in %s:%d Stack trace: diff --git a/Zend/tests/ns_077_8.phpt b/Zend/tests/ns_077_8.phpt index f4f38739a3..9c1bc1db84 100644 --- a/Zend/tests/ns_077_8.phpt +++ b/Zend/tests/ns_077_8.phpt @@ -8,6 +8,7 @@ function foo($a = array(namespace\unknown => unknown)) } foo(); +?> --EXPECTF-- Fatal error: Uncaught Error: Undefined constant "unknown" in %s:%d Stack trace: diff --git a/Zend/tests/ns_078.phpt b/Zend/tests/ns_078.phpt index ed6770ff47..cbb823743b 100644 --- a/Zend/tests/ns_078.phpt +++ b/Zend/tests/ns_078.phpt @@ -26,6 +26,7 @@ Foo::bar(); Bar::bar(); Foo2::bar(); Bar2::bar(); +?> --EXPECT-- test\ns1\Foo test\ns1\Foo diff --git a/Zend/tests/ns_085.phpt b/Zend/tests/ns_085.phpt index dca09caad1..806c9dbcfc 100644 --- a/Zend/tests/ns_085.phpt +++ b/Zend/tests/ns_085.phpt @@ -19,6 +19,7 @@ new foo1; new foo; echo "===DONE===\n"; } +?> --EXPECT-- foo::__construct foo\bar::__construct diff --git a/Zend/tests/ns_086.phpt b/Zend/tests/ns_086.phpt index 292a2fd3bd..c87f1b72d4 100644 --- a/Zend/tests/ns_086.phpt +++ b/Zend/tests/ns_086.phpt @@ -28,6 +28,7 @@ new foo1; new foo; echo "===DONE===\n"; } +?> --EXPECT-- foo::__construct foo\bar::__construct diff --git a/Zend/tests/ns_087.phpt b/Zend/tests/ns_087.phpt index 6ada416a23..807e72afb1 100644 --- a/Zend/tests/ns_087.phpt +++ b/Zend/tests/ns_087.phpt @@ -20,5 +20,6 @@ new foo1; new foo; echo "===DONE===\n"; } +?> --EXPECTF-- Fatal error: No code may exist outside of namespace {} in %s on line 10 diff --git a/Zend/tests/ns_089.phpt b/Zend/tests/ns_089.phpt index 71c6b74a9b..1ea725c344 100644 --- a/Zend/tests/ns_089.phpt +++ b/Zend/tests/ns_089.phpt @@ -42,6 +42,7 @@ namespace Fiz\Biz\Buz { var_dump(BOZ); var_dump(BAR); } +?> --EXPECT-- Foo\Bar\Baz\A::__construct Foo\Bar\Baz\B::__construct diff --git a/Zend/tests/ns_090.phpt b/Zend/tests/ns_090.phpt index 166828c8cb..2e1eb71cae 100644 --- a/Zend/tests/ns_090.phpt +++ b/Zend/tests/ns_090.phpt @@ -33,6 +33,7 @@ namespace Fiz\Biz\Buz { var_dump(BOZ); var_dump(BAR); } +?> --EXPECT-- Foo\Bar\Baz\A::__construct Foo\Bar\Baz\B::__construct diff --git a/Zend/tests/ns_091.phpt b/Zend/tests/ns_091.phpt index ee979025d2..440eaaa356 100644 --- a/Zend/tests/ns_091.phpt +++ b/Zend/tests/ns_091.phpt @@ -14,6 +14,7 @@ namespace Fiz\Biz\Buz { new A; new B; } +?> --EXPECT-- Foo\Bar\A::__construct Foo\Bar\Baz\B::__construct diff --git a/Zend/tests/ns_092.phpt b/Zend/tests/ns_092.phpt index 5618080022..f16eeece89 100644 --- a/Zend/tests/ns_092.phpt +++ b/Zend/tests/ns_092.phpt @@ -47,6 +47,7 @@ namespace Fiz\Biz\Buz { boz(); A(); } +?> --EXPECTF-- ==== MIXED ==== Foo\Bar\A::__construct diff --git a/Zend/tests/ns_093.phpt b/Zend/tests/ns_093.phpt index 4452a6e175..204978d603 100644 --- a/Zend/tests/ns_093.phpt +++ b/Zend/tests/ns_093.phpt @@ -20,5 +20,6 @@ use Foo\Bar\ }; echo "\nDone\n"; +?> --EXPECT-- Done diff --git a/Zend/tests/ns_094.phpt b/Zend/tests/ns_094.phpt index 67cf4b6e2a..03b8f62885 100644 --- a/Zend/tests/ns_094.phpt +++ b/Zend/tests/ns_094.phpt @@ -10,5 +10,6 @@ use const Foo\Bar\{ const B, function C }; +?> --EXPECTF-- Parse error: syntax error, unexpected token "const", expecting "}" in %s on line %d diff --git a/Zend/tests/nullable_types/array.phpt b/Zend/tests/nullable_types/array.phpt index 6ee89b3962..0cacf0ba2e 100644 --- a/Zend/tests/nullable_types/array.phpt +++ b/Zend/tests/nullable_types/array.phpt @@ -9,6 +9,7 @@ function _array_(?array $v): ?array { var_dump(_array_(null)); var_dump(_array_([])); +?> --EXPECT-- NULL array(0) { diff --git a/Zend/tests/nullable_types/contravariant_nullable_param_succeeds.phpt b/Zend/tests/nullable_types/contravariant_nullable_param_succeeds.phpt index a618ed2073..ab4b5b2d9e 100644 --- a/Zend/tests/nullable_types/contravariant_nullable_param_succeeds.phpt +++ b/Zend/tests/nullable_types/contravariant_nullable_param_succeeds.phpt @@ -13,4 +13,5 @@ class B implements A { $b = new B(); $b->method(null); +?> --EXPECT-- diff --git a/Zend/tests/nullable_types/contravariant_nullable_return_fails.phpt b/Zend/tests/nullable_types/contravariant_nullable_return_fails.phpt index fe6ebc5654..0f9c0655cd 100644 --- a/Zend/tests/nullable_types/contravariant_nullable_return_fails.phpt +++ b/Zend/tests/nullable_types/contravariant_nullable_return_fails.phpt @@ -10,5 +10,6 @@ interface A { interface B extends A { function method(): ?int; } +?> --EXPECTF-- Fatal error: Declaration of B::method(): ?int must be compatible with A::method(): int in %s on line %d diff --git a/Zend/tests/nullable_types/covariant_nullable_param_fails.phpt b/Zend/tests/nullable_types/covariant_nullable_param_fails.phpt index 015f540ac0..f1506fa046 100644 --- a/Zend/tests/nullable_types/covariant_nullable_param_fails.phpt +++ b/Zend/tests/nullable_types/covariant_nullable_param_fails.phpt @@ -10,5 +10,6 @@ interface A { class B implements A { function method(int $p) { } } +?> --EXPECTF-- Fatal error: Declaration of B::method(int $p) must be compatible with A::method(?int $p) in %s on line %d diff --git a/Zend/tests/nullable_types/covariant_nullable_return_succeds.phpt b/Zend/tests/nullable_types/covariant_nullable_return_succeds.phpt index 9251d3b4c1..76eef7d692 100644 --- a/Zend/tests/nullable_types/covariant_nullable_return_succeds.phpt +++ b/Zend/tests/nullable_types/covariant_nullable_return_succeds.phpt @@ -10,4 +10,5 @@ interface A { interface B extends A { function method(): int; } +?> --EXPECT-- diff --git a/Zend/tests/nullable_types/float.phpt b/Zend/tests/nullable_types/float.phpt index 0c6602109f..14af7a6864 100644 --- a/Zend/tests/nullable_types/float.phpt +++ b/Zend/tests/nullable_types/float.phpt @@ -9,6 +9,7 @@ function _float_(?float $v): ?float { var_dump(_float_(null)); var_dump(_float_(1.3)); +?> --EXPECT-- NULL float(1.3) diff --git a/Zend/tests/nullable_types/int.phpt b/Zend/tests/nullable_types/int.phpt index b5bafb0956..0553c05221 100644 --- a/Zend/tests/nullable_types/int.phpt +++ b/Zend/tests/nullable_types/int.phpt @@ -9,6 +9,7 @@ function _int_(?int $v): ?int { var_dump(_int_(null)); var_dump(_int_(1)); +?> --EXPECT-- NULL int(1) diff --git a/Zend/tests/nullable_types/invariant_param_and_return_succeeds.phpt b/Zend/tests/nullable_types/invariant_param_and_return_succeeds.phpt index 6ddad67bb8..6df4d506cf 100644 --- a/Zend/tests/nullable_types/invariant_param_and_return_succeeds.phpt +++ b/Zend/tests/nullable_types/invariant_param_and_return_succeeds.phpt @@ -16,6 +16,7 @@ class B implements A { $b = new B(); var_dump($b->method(null)); var_dump($b->method(1)); +?> --EXPECT-- NULL int(1) diff --git a/Zend/tests/nullable_types/nullable_type_parameters_do_not_have_default_value.phpt b/Zend/tests/nullable_types/nullable_type_parameters_do_not_have_default_value.phpt index 95442b96b4..e7f6add6f5 100644 --- a/Zend/tests/nullable_types/nullable_type_parameters_do_not_have_default_value.phpt +++ b/Zend/tests/nullable_types/nullable_type_parameters_do_not_have_default_value.phpt @@ -6,6 +6,7 @@ Explicit nullable types do not imply a default value function f(?callable $p) {} f(); +?> --EXPECTF-- Fatal error: Uncaught ArgumentCountError: Too few arguments to function f(), 0 passed in %snullable_type_parameters_do_not_have_default_value.php on line %d and exactly 1 expected in %s:%d Stack trace: diff --git a/Zend/tests/nullable_types/string.phpt b/Zend/tests/nullable_types/string.phpt index ab469af808..2973b55690 100644 --- a/Zend/tests/nullable_types/string.phpt +++ b/Zend/tests/nullable_types/string.phpt @@ -9,6 +9,7 @@ function _string_(?string $v): ?string { var_dump(_string_(null)); var_dump(_string_("php")); +?> --EXPECT-- NULL string(3) "php" diff --git a/Zend/tests/nullsafe_operator/020.phpt b/Zend/tests/nullsafe_operator/020.phpt index 28cd6db0dc..4d06ce616c 100644 --- a/Zend/tests/nullsafe_operator/020.phpt +++ b/Zend/tests/nullsafe_operator/020.phpt @@ -14,5 +14,6 @@ function bar() { $foo = null; $foo?->bar->baz = bar(); +?> --EXPECTF-- Fatal error: Can't use nullsafe operator in write context in %s.php on line 12 diff --git a/Zend/tests/nullsafe_operator/021.phpt b/Zend/tests/nullsafe_operator/021.phpt index a44aef433d..07116c90ab 100644 --- a/Zend/tests/nullsafe_operator/021.phpt +++ b/Zend/tests/nullsafe_operator/021.phpt @@ -17,5 +17,6 @@ $foo->bar = new Bar(); [$foo?->bar->baz] = ['bar']; var_dump($foo); +?> --EXPECTF-- Fatal error: Assignments can only happen to writable values in %s on line %d diff --git a/Zend/tests/nullsafe_operator/022.phpt b/Zend/tests/nullsafe_operator/022.phpt index 2cda806a36..6dbb72d9b5 100644 --- a/Zend/tests/nullsafe_operator/022.phpt +++ b/Zend/tests/nullsafe_operator/022.phpt @@ -6,5 +6,6 @@ Test nullsafe in unset $foo = null; unset($foo?->bar->baz); +?> --EXPECTF-- Fatal error: Can't use nullsafe operator in write context in %s.php on line 4 diff --git a/Zend/tests/nullsafe_operator/024.phpt b/Zend/tests/nullsafe_operator/024.phpt index 2d4d86caea..220e9ea506 100644 --- a/Zend/tests/nullsafe_operator/024.phpt +++ b/Zend/tests/nullsafe_operator/024.phpt @@ -6,5 +6,6 @@ Test nullsafe as foreach target $foo = null; foreach ([1, 2, 3] as $foo?->bar) {} +?> --EXPECTF-- Fatal error: Can't use nullsafe operator in write context in %s.php on line 4 diff --git a/Zend/tests/numeric_literal_separator_001.phpt b/Zend/tests/numeric_literal_separator_001.phpt index 866bd36fa9..f60c3f6138 100644 --- a/Zend/tests/numeric_literal_separator_001.phpt +++ b/Zend/tests/numeric_literal_separator_001.phpt @@ -13,6 +13,7 @@ var_dump(0b0101_1111 === 0b01011111); var_dump(0b01_0000_10 === 0b01000010); var_dump(0137_041 === 0137041); var_dump(0_124 === 0124); +?> --EXPECT-- bool(true) bool(true) diff --git a/Zend/tests/numeric_literal_separator_002.phpt b/Zend/tests/numeric_literal_separator_002.phpt index 5eacdf056f..5419d36851 100644 --- a/Zend/tests/numeric_literal_separator_002.phpt +++ b/Zend/tests/numeric_literal_separator_002.phpt @@ -3,5 +3,6 @@ Invalid use: trailing underscore --FILE-- <?php 100_; +?> --EXPECTF-- Parse error: syntax error, unexpected identifier "_" in %s on line %d diff --git a/Zend/tests/numeric_literal_separator_003.phpt b/Zend/tests/numeric_literal_separator_003.phpt index d4b6b81bc4..a01af7569a 100644 --- a/Zend/tests/numeric_literal_separator_003.phpt +++ b/Zend/tests/numeric_literal_separator_003.phpt @@ -3,5 +3,6 @@ Invalid use: adjacent underscores --FILE-- <?php 10__0; +?> --EXPECTF-- Parse error: syntax error, unexpected identifier "__0" in %s on line %d diff --git a/Zend/tests/numeric_literal_separator_004.phpt b/Zend/tests/numeric_literal_separator_004.phpt index 53c9fea971..f306eb952b 100644 --- a/Zend/tests/numeric_literal_separator_004.phpt +++ b/Zend/tests/numeric_literal_separator_004.phpt @@ -3,5 +3,6 @@ Invalid use: underscore left of period --FILE-- <?php 100_.0; +?> --EXPECTF-- Parse error: syntax error, unexpected identifier "_" in %s on line %d diff --git a/Zend/tests/numeric_literal_separator_005.phpt b/Zend/tests/numeric_literal_separator_005.phpt index 0c86ecfa5e..85e2711c05 100644 --- a/Zend/tests/numeric_literal_separator_005.phpt +++ b/Zend/tests/numeric_literal_separator_005.phpt @@ -3,5 +3,6 @@ Invalid use: underscore right of period --FILE-- <?php 100._0; +?> --EXPECTF-- Parse error: syntax error, unexpected identifier "_0" in %s on line %d diff --git a/Zend/tests/numeric_literal_separator_006.phpt b/Zend/tests/numeric_literal_separator_006.phpt index 3ef391f63b..a6582d0c39 100644 --- a/Zend/tests/numeric_literal_separator_006.phpt +++ b/Zend/tests/numeric_literal_separator_006.phpt @@ -3,5 +3,6 @@ Invalid use: underscore next to 0x --FILE-- <?php 0x_0123; +?> --EXPECTF-- Parse error: syntax error, unexpected identifier "x_0123" in %s on line %d diff --git a/Zend/tests/numeric_literal_separator_007.phpt b/Zend/tests/numeric_literal_separator_007.phpt index b2a04a82a1..c660ee523e 100644 --- a/Zend/tests/numeric_literal_separator_007.phpt +++ b/Zend/tests/numeric_literal_separator_007.phpt @@ -3,5 +3,6 @@ Invalid use: underscore next to 0b --FILE-- <?php 0b_0101; +?> --EXPECTF-- Parse error: syntax error, unexpected identifier "b_0101" in %s on line %d diff --git a/Zend/tests/numeric_literal_separator_008.phpt b/Zend/tests/numeric_literal_separator_008.phpt index 8c789b4e80..7927bbcf99 100644 --- a/Zend/tests/numeric_literal_separator_008.phpt +++ b/Zend/tests/numeric_literal_separator_008.phpt @@ -3,5 +3,6 @@ Invalid use: underscore left of e --FILE-- <?php 1_e2; +?> --EXPECTF-- Parse error: syntax error, unexpected identifier "_e2" in %s on line %d diff --git a/Zend/tests/numeric_literal_separator_009.phpt b/Zend/tests/numeric_literal_separator_009.phpt index 74a20b7827..d905ef2708 100644 --- a/Zend/tests/numeric_literal_separator_009.phpt +++ b/Zend/tests/numeric_literal_separator_009.phpt @@ -3,5 +3,6 @@ Invalid use: underscore right of e --FILE-- <?php 1e_2; +?> --EXPECTF-- Parse error: syntax error, unexpected identifier "e_2" in %s on line %d diff --git a/Zend/tests/object_types/missing_return_type_inheritance_in_class.phpt b/Zend/tests/object_types/missing_return_type_inheritance_in_class.phpt index 0938b24d0a..b401d2e311 100644 --- a/Zend/tests/object_types/missing_return_type_inheritance_in_class.phpt +++ b/Zend/tests/object_types/missing_return_type_inheritance_in_class.phpt @@ -10,5 +10,6 @@ class One { class Two extends One { public function a() {} } +?> --EXPECTF-- Fatal error: Declaration of Two::a() must be compatible with One::a(): object in %s on line 8 diff --git a/Zend/tests/object_types/missing_return_type_inheritance_in_interface.phpt b/Zend/tests/object_types/missing_return_type_inheritance_in_interface.phpt index eb0e98b635..e3652920c8 100644 --- a/Zend/tests/object_types/missing_return_type_inheritance_in_interface.phpt +++ b/Zend/tests/object_types/missing_return_type_inheritance_in_interface.phpt @@ -10,5 +10,6 @@ interface One { interface Two extends One { public function a(); } +?> --EXPECTF-- Fatal error: Declaration of Two::a() must be compatible with One::a(): object in %s on line %d diff --git a/Zend/tests/object_types/return_type_in_class.phpt b/Zend/tests/object_types/return_type_in_class.phpt index f2a6288298..3e44107373 100644 --- a/Zend/tests/object_types/return_type_in_class.phpt +++ b/Zend/tests/object_types/return_type_in_class.phpt @@ -17,6 +17,7 @@ $three = new class extends Two { } }; $three->a(); +?> --EXPECTF-- Fatal error: Uncaught TypeError: Two@anonymous::a(): Return value must be of type object, int returned in %s:%d Stack trace: diff --git a/Zend/tests/object_types/return_type_in_function.phpt b/Zend/tests/object_types/return_type_in_function.phpt index b94541c8d7..5a6e1ba5c6 100644 --- a/Zend/tests/object_types/return_type_in_function.phpt +++ b/Zend/tests/object_types/return_type_in_function.phpt @@ -7,6 +7,7 @@ function a() : object { return 12345; } a(); +?> --EXPECTF-- Fatal error: Uncaught TypeError: a(): Return value must be of type object, int returned in %s:%d Stack trace: diff --git a/Zend/tests/object_types/return_type_inheritance_in_class.phpt b/Zend/tests/object_types/return_type_inheritance_in_class.phpt index 564a9d311d..6e2dbac55c 100644 --- a/Zend/tests/object_types/return_type_inheritance_in_class.phpt +++ b/Zend/tests/object_types/return_type_inheritance_in_class.phpt @@ -17,6 +17,7 @@ $three = new class extends Two { } }; $three->a(); +?> --EXPECTF-- Fatal error: Uncaught TypeError: Two@anonymous::a(): Return value must be of type object, int returned in %s:%d Stack trace: diff --git a/Zend/tests/object_types/return_type_inheritance_in_interface.phpt b/Zend/tests/object_types/return_type_inheritance_in_interface.phpt index 2e112c4cb6..8bb5ad1616 100644 --- a/Zend/tests/object_types/return_type_inheritance_in_interface.phpt +++ b/Zend/tests/object_types/return_type_inheritance_in_interface.phpt @@ -17,6 +17,7 @@ $three = new class implements Two { } }; $three->a(); +?> --EXPECTF-- Fatal error: Uncaught TypeError: Two@anonymous::a(): Return value must be of type object, int returned in %s:%d Stack trace: diff --git a/Zend/tests/object_types/return_type_reflection.phpt b/Zend/tests/object_types/return_type_reflection.phpt index ac01d90894..0791be9f9f 100644 --- a/Zend/tests/object_types/return_type_reflection.phpt +++ b/Zend/tests/object_types/return_type_reflection.phpt @@ -21,6 +21,7 @@ var_dump($returnTypeTwo->isBuiltin(), $returnTypeTwo->getName()); $returnTypea = (new ReflectionFunction('a'))->getReturnType(); var_dump($returnTypea->isBuiltin(), $returnTypea->getName()); +?> --EXPECT-- bool(true) string(6) "object" diff --git a/Zend/tests/object_types/type_hint_in_class_method.phpt b/Zend/tests/object_types/type_hint_in_class_method.phpt index f23189cb50..305f44719d 100644 --- a/Zend/tests/object_types/type_hint_in_class_method.phpt +++ b/Zend/tests/object_types/type_hint_in_class_method.phpt @@ -10,6 +10,7 @@ class One { $one = new One(); $one->a(new One()); $one->a(123); +?> --EXPECTF-- Fatal error: Uncaught TypeError: One::a(): Argument #1 ($obj) must be of type object, int given, called in %s:%d Stack trace: diff --git a/Zend/tests/object_types/type_hint_in_function.phpt b/Zend/tests/object_types/type_hint_in_function.phpt index f35e73b3a7..75cbd68f3b 100644 --- a/Zend/tests/object_types/type_hint_in_function.phpt +++ b/Zend/tests/object_types/type_hint_in_function.phpt @@ -8,6 +8,7 @@ function a(object $obj) {} a(new A()); a(123); +?> --EXPECTF-- Fatal error: Uncaught TypeError: a(): Argument #1 ($obj) must be of type object, int given, called in %s:%d Stack trace: diff --git a/Zend/tests/object_types/type_hint_reflection.phpt b/Zend/tests/object_types/type_hint_reflection.phpt index b530e6dc04..df046de097 100644 --- a/Zend/tests/object_types/type_hint_reflection.phpt +++ b/Zend/tests/object_types/type_hint_reflection.phpt @@ -21,6 +21,7 @@ var_dump($typeHintTwo->isBuiltin(), $typeHintTwo->getName()); $typeHinta = (new ReflectionFunction('a'))->getParameters()[0]->getType(); var_dump($typeHinta->isBuiltin(), $typeHinta->getName()); +?> --EXPECT-- bool(true) string(6) "object" diff --git a/Zend/tests/objects_033.phpt b/Zend/tests/objects_033.phpt index 365edc3832..3c19864490 100644 --- a/Zend/tests/objects_033.phpt +++ b/Zend/tests/objects_033.phpt @@ -22,6 +22,7 @@ $b = new B(); $b->a = 1; $b->b = 0; var_dump($a < $b); print_r($a, true); var_dump($a < $b); +?> --EXPECT-- bool(false) bool(false) diff --git a/Zend/tests/oct_overflow_char.phpt b/Zend/tests/oct_overflow_char.phpt index 32060d8593..61de43d201 100644 --- a/Zend/tests/oct_overflow_char.phpt +++ b/Zend/tests/oct_overflow_char.phpt @@ -5,6 +5,7 @@ Octal overflow in string interpolation // "abc", ordinarily 'b' would be \142, but we'll deliberately overflow the value by \400 echo "\141\542\143\n"; +?> --EXPECTF-- Warning: Octal escape sequence overflow \542 is greater than \377 in %s%eoct_overflow_char.php on line 4 abc diff --git a/Zend/tests/parameter_default_values/userland_declaration_error_class_const.phpt b/Zend/tests/parameter_default_values/userland_declaration_error_class_const.phpt index c65883229d..40648c80b2 100644 --- a/Zend/tests/parameter_default_values/userland_declaration_error_class_const.phpt +++ b/Zend/tests/parameter_default_values/userland_declaration_error_class_const.phpt @@ -21,5 +21,6 @@ class B extends A { } } +?> --EXPECTF-- Fatal error: Declaration of B::foo() must be compatible with A::foo($param1 = Foo\Bar::CONSTANT, $param2 = Foo\Bar::CONSTANT, $param3 = Foo\Bar::CONSTANT) in %s on line %d diff --git a/Zend/tests/parameter_default_values/userland_declaration_error_const.phpt b/Zend/tests/parameter_default_values/userland_declaration_error_const.phpt index 710494d0ac..1ceefbad68 100644 --- a/Zend/tests/parameter_default_values/userland_declaration_error_const.phpt +++ b/Zend/tests/parameter_default_values/userland_declaration_error_const.phpt @@ -21,5 +21,6 @@ class B extends A { } } +?> --EXPECTF-- Fatal error: Declaration of B::foo() must be compatible with A::foo($param1 = Foo\CONSTANT, $param2 = Foo\CONSTANT, $param3 = Foo\CONSTANT) in %s on line %d diff --git a/Zend/tests/result_unused.phpt b/Zend/tests/result_unused.phpt index e6bb9be771..d508aaa7ed 100644 --- a/Zend/tests/result_unused.phpt +++ b/Zend/tests/result_unused.phpt @@ -23,6 +23,7 @@ $x = new Foo(); $x->prop; $x->y; echo "ok\n"; +?> --EXPECTF-- Warning: Uninitialized string offset 3 in %s on line %d ok diff --git a/Zend/tests/return_types/001.phpt b/Zend/tests/return_types/001.phpt index f726f0cd7e..3ebb61213c 100644 --- a/Zend/tests/return_types/001.phpt +++ b/Zend/tests/return_types/001.phpt @@ -6,6 +6,7 @@ function test1() : array { } test1(); +?> --EXPECTF-- Fatal error: Uncaught TypeError: test1(): Return value must be of type array, none returned in %s:%d Stack trace: diff --git a/Zend/tests/return_types/002.phpt b/Zend/tests/return_types/002.phpt index ad88cf1256..b9af03a980 100644 --- a/Zend/tests/return_types/002.phpt +++ b/Zend/tests/return_types/002.phpt @@ -7,6 +7,7 @@ function test1() : array { } test1(); +?> --EXPECTF-- Fatal error: Uncaught TypeError: test1(): Return value must be of type array, null returned in %s:%d Stack trace: diff --git a/Zend/tests/return_types/003.phpt b/Zend/tests/return_types/003.phpt index c2f466cd01..af919b6dab 100644 --- a/Zend/tests/return_types/003.phpt +++ b/Zend/tests/return_types/003.phpt @@ -6,6 +6,7 @@ function test1() : array { return 1; } test1(); +?> --EXPECTF-- Fatal error: Uncaught TypeError: test1(): Return value must be of type array, int returned in %s:%d Stack trace: diff --git a/Zend/tests/return_types/004.phpt b/Zend/tests/return_types/004.phpt index 3d2fdda0d9..e37ba54110 100644 --- a/Zend/tests/return_types/004.phpt +++ b/Zend/tests/return_types/004.phpt @@ -7,6 +7,7 @@ function test1() : array { } test1(); +?> --EXPECTF-- Fatal error: Uncaught TypeError: test1(): Return value must be of type array, string returned in %s:%d Stack trace: diff --git a/Zend/tests/return_types/005.phpt b/Zend/tests/return_types/005.phpt index 31d5ca8b9a..9d490df7d9 100644 --- a/Zend/tests/return_types/005.phpt +++ b/Zend/tests/return_types/005.phpt @@ -12,6 +12,7 @@ class qux { $qux = new qux(); $qux->foo(); +?> --EXPECTF-- Fatal error: Uncaught TypeError: qux::foo(): Return value must be of type foo, qux returned in %s:%d Stack trace: diff --git a/Zend/tests/return_types/006.phpt b/Zend/tests/return_types/006.phpt index a4fcea1d25..a5b7803151 100644 --- a/Zend/tests/return_types/006.phpt +++ b/Zend/tests/return_types/006.phpt @@ -14,6 +14,7 @@ $comments = new CommentsIterator([new Comment]); foreach ($comments as $comment) { var_dump($comment); } +?> --EXPECTF-- object(Comment)#%d (%d) { } diff --git a/Zend/tests/return_types/007.phpt b/Zend/tests/return_types/007.phpt index 21f7023518..4b51e366ec 100644 --- a/Zend/tests/return_types/007.phpt +++ b/Zend/tests/return_types/007.phpt @@ -12,6 +12,7 @@ class qux extends foo { $qux = new qux(); var_dump($qux->foo()); +?> --EXPECTF-- object(qux)#%d (%d) { } diff --git a/Zend/tests/return_types/009.phpt b/Zend/tests/return_types/009.phpt index 7eda8ce27b..8aadae3b87 100644 --- a/Zend/tests/return_types/009.phpt +++ b/Zend/tests/return_types/009.phpt @@ -13,5 +13,6 @@ class qux implements foo { return $this; } } +?> --EXPECTF-- Fatal error: Declaration of qux::bar(): biz must be compatible with foo::bar(): foo in %s on line %d diff --git a/Zend/tests/return_types/010.phpt b/Zend/tests/return_types/010.phpt index 763c8664ee..902fd9ad50 100644 --- a/Zend/tests/return_types/010.phpt +++ b/Zend/tests/return_types/010.phpt @@ -8,6 +8,7 @@ function &foo(array &$in) : array { $array = [1, 2, 3]; var_dump(foo($array)); +?> --EXPECTF-- Fatal error: Uncaught TypeError: foo(): Return value must be of type array, null returned in %s:%d Stack trace: diff --git a/Zend/tests/return_types/011.phpt b/Zend/tests/return_types/011.phpt index 23dbc1cfdb..76cd6934e8 100644 --- a/Zend/tests/return_types/011.phpt +++ b/Zend/tests/return_types/011.phpt @@ -7,6 +7,7 @@ function foo() : callable { } var_dump(foo()); +?> --EXPECTF-- object(Closure)#%d (%d) { } diff --git a/Zend/tests/return_types/012.phpt b/Zend/tests/return_types/012.phpt index b4c02a8ec1..6bddbffe8e 100644 --- a/Zend/tests/return_types/012.phpt +++ b/Zend/tests/return_types/012.phpt @@ -13,6 +13,7 @@ class foo { $baz = new foo(); var_dump($baz->bar()); +?> --EXPECT-- object(Closure)#2 (2) { ["static"]=> diff --git a/Zend/tests/return_types/013.phpt b/Zend/tests/return_types/013.phpt index e7cea22acc..aa3631a22d 100644 --- a/Zend/tests/return_types/013.phpt +++ b/Zend/tests/return_types/013.phpt @@ -13,6 +13,7 @@ class foo { $baz = new foo(); var_dump($func=$baz->bar(), $func()); +?> --EXPECTF-- Fatal error: Uncaught TypeError: foo::{closure}(): Return value must be of type array, null returned in %s:%d Stack trace: diff --git a/Zend/tests/return_types/014.phpt b/Zend/tests/return_types/014.phpt index 00f5e288bd..7565f59a60 100644 --- a/Zend/tests/return_types/014.phpt +++ b/Zend/tests/return_types/014.phpt @@ -6,5 +6,6 @@ Constructors cannot declare a return type class Foo { function __construct() : Foo {} } +?> --EXPECTF-- Fatal error: Method Foo::__construct() cannot declare a return type in %s on line %d diff --git a/Zend/tests/return_types/015.phpt b/Zend/tests/return_types/015.phpt index 973956b6bc..e9557d44c4 100644 --- a/Zend/tests/return_types/015.phpt +++ b/Zend/tests/return_types/015.phpt @@ -17,6 +17,7 @@ class Vector implements Collection { $v = new Vector; var_dump($v->values()); +?> --EXPECTF-- object(Collections\Vector)#%d (%d) { } diff --git a/Zend/tests/return_types/016.phpt b/Zend/tests/return_types/016.phpt index cf31d96e6b..e408abbc5e 100644 --- a/Zend/tests/return_types/016.phpt +++ b/Zend/tests/return_types/016.phpt @@ -13,6 +13,7 @@ class Foo { $foo = new Foo; var_dump($foo->foo(new \EmptyIterator())); +?> --EXPECTF-- object(EmptyIterator)#%d (0) { } diff --git a/Zend/tests/return_types/017.phpt b/Zend/tests/return_types/017.phpt index d45cb55d45..e8eff94816 100644 --- a/Zend/tests/return_types/017.phpt +++ b/Zend/tests/return_types/017.phpt @@ -17,6 +17,7 @@ class Foo { $foo = new Foo; var_dump($foo->foo([])); +?> --EXPECTF-- object(EmptyIterator)#%d (%d) { } diff --git a/Zend/tests/return_types/018.phpt b/Zend/tests/return_types/018.phpt index 6c2f48c8c9..134cdb25a0 100644 --- a/Zend/tests/return_types/018.phpt +++ b/Zend/tests/return_types/018.phpt @@ -6,5 +6,6 @@ Destructors cannot declare a return type class Foo { function __destruct() : Foo {} } +?> --EXPECTF-- Fatal error: Method Foo::__destruct() cannot declare a return type in %s on line %d diff --git a/Zend/tests/return_types/020.phpt b/Zend/tests/return_types/020.phpt index 57c93a8dcd..d97891d4f5 100644 --- a/Zend/tests/return_types/020.phpt +++ b/Zend/tests/return_types/020.phpt @@ -7,6 +7,7 @@ function test() : array { } test(); +?> --EXPECTF-- Fatal error: Uncaught Exception in %s:%d Stack trace: diff --git a/Zend/tests/return_types/021.phpt b/Zend/tests/return_types/021.phpt index bd37df68f3..ab241b3367 100644 --- a/Zend/tests/return_types/021.phpt +++ b/Zend/tests/return_types/021.phpt @@ -12,6 +12,7 @@ class Bar extends Foo {} var_dump(Foo::getInstance()); var_dump(Bar::getInstance()); +?> --EXPECTF-- object(Foo)#%d (%d) { } diff --git a/Zend/tests/return_types/022.phpt b/Zend/tests/return_types/022.phpt index b0686ea8ab..e5468b082a 100644 --- a/Zend/tests/return_types/022.phpt +++ b/Zend/tests/return_types/022.phpt @@ -11,5 +11,6 @@ $test = function() use($foo) : Closure { $callable = $test(); var_dump($callable()); +?> --EXPECT-- string(3) "bar" diff --git a/Zend/tests/return_types/024.phpt b/Zend/tests/return_types/024.phpt index 45c8162335..444a9523b6 100644 --- a/Zend/tests/return_types/024.phpt +++ b/Zend/tests/return_types/024.phpt @@ -4,5 +4,6 @@ Return type of self is not allowed in function <?php function test(): self {} +?> --EXPECTF-- Fatal error: Cannot use "self" when no class scope is active in %s on line 3 diff --git a/Zend/tests/return_types/025.phpt b/Zend/tests/return_types/025.phpt index c9f0ffef4a..cddacb28e5 100644 --- a/Zend/tests/return_types/025.phpt +++ b/Zend/tests/return_types/025.phpt @@ -6,6 +6,7 @@ Return type of self is allowed in closure $c = function(): self { return $this; }; class Bar { } var_dump($c->call(new Bar)); +?> --EXPECT-- object(Bar)#2 (0) { } diff --git a/Zend/tests/return_types/026.phpt b/Zend/tests/return_types/026.phpt index f08c527512..5229379df5 100644 --- a/Zend/tests/return_types/026.phpt +++ b/Zend/tests/return_types/026.phpt @@ -4,5 +4,6 @@ Return type of parent is not allowed in function <?php function test(): parent {} +?> --EXPECTF-- Fatal error: Cannot use "parent" when no class scope is active in %s on line %d diff --git a/Zend/tests/return_types/027.phpt b/Zend/tests/return_types/027.phpt index 33a9c7f94d..8357b572ce 100644 --- a/Zend/tests/return_types/027.phpt +++ b/Zend/tests/return_types/027.phpt @@ -8,6 +8,7 @@ class B extends A {} $c = function(parent $x): parent { return $x; }; var_dump($c->bindTo(null, 'B')(new A)); +?> --EXPECTF-- object(A)#%d (0) { } diff --git a/Zend/tests/return_types/generators001.phpt b/Zend/tests/return_types/generators001.phpt index 4cff100a8f..64793eaa00 100644 --- a/Zend/tests/return_types/generators001.phpt +++ b/Zend/tests/return_types/generators001.phpt @@ -34,6 +34,7 @@ var_dump( test5(), test6(), ); +?> --EXPECTF-- object(Generator)#%d (%d) { } diff --git a/Zend/tests/return_types/generators002.phpt b/Zend/tests/return_types/generators002.phpt index d5ef4f2d48..37cc42b3ec 100644 --- a/Zend/tests/return_types/generators002.phpt +++ b/Zend/tests/return_types/generators002.phpt @@ -5,5 +5,6 @@ Generator return type must be a supertype of Generator function test1() : StdClass { yield 1; } +?> --EXPECTF-- Fatal error: Generator return type must be a supertype of Generator, StdClass given in %s on line %d diff --git a/Zend/tests/return_types/generators004.phpt b/Zend/tests/return_types/generators004.phpt index 4e9aa07f42..d6e9867a7a 100644 --- a/Zend/tests/return_types/generators004.phpt +++ b/Zend/tests/return_types/generators004.phpt @@ -11,5 +11,6 @@ $a = function(): \Iterator { foreach($a() as $value) { echo $value; } +?> --EXPECT-- 1 diff --git a/Zend/tests/return_types/generators005.phpt b/Zend/tests/return_types/generators005.phpt index a7e3bda042..586e0ec0c8 100644 --- a/Zend/tests/return_types/generators005.phpt +++ b/Zend/tests/return_types/generators005.phpt @@ -16,6 +16,7 @@ class SomeCollection implements Collection { $some = new SomeCollection(); var_dump($some->getIterator()); +?> --EXPECTF-- object(Generator)#%d (%d) { } diff --git a/Zend/tests/return_types/generators006.phpt b/Zend/tests/return_types/generators006.phpt index 00dbc9ed06..71ea4d9a83 100644 --- a/Zend/tests/return_types/generators006.phpt +++ b/Zend/tests/return_types/generators006.phpt @@ -5,5 +5,6 @@ Generator return type must be a supertype of Generator (with union types) function test1() : StdClass|ArrayObject|array { yield 1; } +?> --EXPECTF-- Fatal error: Generator return type must be a supertype of Generator, StdClass|ArrayObject|array given in %s on line %d diff --git a/Zend/tests/return_types/inheritance001.phpt b/Zend/tests/return_types/inheritance001.phpt index 5e154d0482..5f706efbc9 100644 --- a/Zend/tests/return_types/inheritance001.phpt +++ b/Zend/tests/return_types/inheritance001.phpt @@ -10,5 +10,6 @@ class A { class B extends A { function foo(): StdClass {} } +?> --EXPECTF-- Fatal error: Declaration of B::foo(): StdClass must be compatible with A::foo(): A in %s on line %d diff --git a/Zend/tests/return_types/inheritance002.phpt b/Zend/tests/return_types/inheritance002.phpt index bb00b7e243..1b91af8596 100644 --- a/Zend/tests/return_types/inheritance002.phpt +++ b/Zend/tests/return_types/inheritance002.phpt @@ -10,5 +10,6 @@ abstract class A { class B extends A { function foo(): StdClass {} } +?> --EXPECTF-- Fatal error: Declaration of B::foo(): StdClass must be compatible with A::foo(): A in %s on line %d diff --git a/Zend/tests/return_types/inheritance003.phpt b/Zend/tests/return_types/inheritance003.phpt index e8ebe90cd1..b097dba91a 100644 --- a/Zend/tests/return_types/inheritance003.phpt +++ b/Zend/tests/return_types/inheritance003.phpt @@ -10,5 +10,6 @@ interface A { class B implements A { function foo(): StdClass {} } +?> --EXPECTF-- Fatal error: Declaration of B::foo(): StdClass must be compatible with A::foo(): A in %s on line %d diff --git a/Zend/tests/return_types/inheritance004.phpt b/Zend/tests/return_types/inheritance004.phpt index 1c8d685a63..48d51ccaf5 100644 --- a/Zend/tests/return_types/inheritance004.phpt +++ b/Zend/tests/return_types/inheritance004.phpt @@ -16,6 +16,7 @@ class Bar extends Foo { var_dump(Bar::test()); var_dump(Foo::test()); +?> --EXPECTF-- object(Bar)#%d (0) { } diff --git a/Zend/tests/return_types/inheritance008.phpt b/Zend/tests/return_types/inheritance008.phpt index df353cda05..08ea45c0c7 100644 --- a/Zend/tests/return_types/inheritance008.phpt +++ b/Zend/tests/return_types/inheritance008.phpt @@ -20,6 +20,7 @@ class Bar extends Foo { var_dump(Bar::test()); var_dump(Foo::test()); +?> --EXPECTF-- object(B)#%d (0) { } diff --git a/Zend/tests/return_types/inheritance009.phpt b/Zend/tests/return_types/inheritance009.phpt index b7d5628e8d..157ff12ac1 100644 --- a/Zend/tests/return_types/inheritance009.phpt +++ b/Zend/tests/return_types/inheritance009.phpt @@ -18,6 +18,7 @@ class Bar extends Foo { var_dump(Bar::test()); var_dump(Foo::test()); +?> --EXPECTF-- object(ArrayObject)#%d (1) { ["storage":"ArrayObject":private]=> diff --git a/Zend/tests/return_types/rfc001.phpt b/Zend/tests/return_types/rfc001.phpt index f9cdbec2b7..17a0d59c5f 100644 --- a/Zend/tests/return_types/rfc001.phpt +++ b/Zend/tests/return_types/rfc001.phpt @@ -8,6 +8,7 @@ function get_config(): array { } get_config(); +?> --EXPECTF-- Fatal error: Uncaught TypeError: get_config(): Return value must be of type array, int returned in %s:%d Stack trace: diff --git a/Zend/tests/return_types/rfc002.phpt b/Zend/tests/return_types/rfc002.phpt index a2c326c24a..d2e4aa841f 100644 --- a/Zend/tests/return_types/rfc002.phpt +++ b/Zend/tests/return_types/rfc002.phpt @@ -7,5 +7,6 @@ function answer(): int { } var_dump(answer()); +?> --EXPECT-- int(42) diff --git a/Zend/tests/return_types/rfc003.phpt b/Zend/tests/return_types/rfc003.phpt index 461d80b7fe..dc78bf40a7 100644 --- a/Zend/tests/return_types/rfc003.phpt +++ b/Zend/tests/return_types/rfc003.phpt @@ -7,6 +7,7 @@ function foo(): DateTime { } foo(); +?> --EXPECTF-- Fatal error: Uncaught TypeError: foo(): Return value must be of type DateTime, null returned in %s:%d Stack trace: diff --git a/Zend/tests/return_types/rfc004.phpt b/Zend/tests/return_types/rfc004.phpt index 189d0553c6..abd12c1e90 100644 --- a/Zend/tests/return_types/rfc004.phpt +++ b/Zend/tests/return_types/rfc004.phpt @@ -15,5 +15,6 @@ class UserGateway_MySql implements UserGateway { return new User; } } +?> --EXPECTF-- Fatal error: Declaration of UserGateway_MySql::find($id) must be compatible with UserGateway::find($id): User in %s on line 11 diff --git a/Zend/tests/return_types/void_allowed.phpt b/Zend/tests/return_types/void_allowed.phpt index 8f07c7392e..c887b5264a 100644 --- a/Zend/tests/return_types/void_allowed.phpt +++ b/Zend/tests/return_types/void_allowed.phpt @@ -16,5 +16,6 @@ function bar(): void { bar(); echo "OK!", PHP_EOL; +?> --EXPECT-- OK! diff --git a/Zend/tests/return_types/void_disallowed1.phpt b/Zend/tests/return_types/void_disallowed1.phpt index 365e2060bf..ff337bbe98 100644 --- a/Zend/tests/return_types/void_disallowed1.phpt +++ b/Zend/tests/return_types/void_disallowed1.phpt @@ -8,5 +8,6 @@ function foo(): void { } // Note the lack of function call: function validated at compile-time +?> --EXPECTF-- Fatal error: A void function must not return a value (did you mean "return;" instead of "return null;"?) in %s on line %d diff --git a/Zend/tests/return_types/void_disallowed2.phpt b/Zend/tests/return_types/void_disallowed2.phpt index 7bbc3ac24f..a17a5d9f9a 100644 --- a/Zend/tests/return_types/void_disallowed2.phpt +++ b/Zend/tests/return_types/void_disallowed2.phpt @@ -8,5 +8,6 @@ function foo(): void { } // Note the lack of function call: function validated at compile-time +?> --EXPECTF-- Fatal error: A void function must not return a value in %s on line %d diff --git a/Zend/tests/return_types/void_parameter.phpt b/Zend/tests/return_types/void_parameter.phpt index 4c6e918406..b98f4f6cef 100644 --- a/Zend/tests/return_types/void_parameter.phpt +++ b/Zend/tests/return_types/void_parameter.phpt @@ -4,5 +4,6 @@ void return type: not valid as a parameter type <?php function foobar(void $a) {} +?> --EXPECTF-- Fatal error: void cannot be used as a parameter type in %s on line %d diff --git a/Zend/tests/strlen.phpt b/Zend/tests/strlen.phpt index ddf0141386..bf55c3419a 100644 --- a/Zend/tests/strlen.phpt +++ b/Zend/tests/strlen.phpt @@ -41,6 +41,7 @@ var_dump($a); $a = 'foobar'; var_dump(strlen($t2)); var_dump($t2->something); +?> --EXPECT-- int(5) string(5) "hello" diff --git a/Zend/tests/this_in_eval.phpt b/Zend/tests/this_in_eval.phpt index a499d8ac76..d4bd9268d9 100644 --- a/Zend/tests/this_in_eval.phpt +++ b/Zend/tests/this_in_eval.phpt @@ -10,6 +10,7 @@ class C { } $x = new C; $x->foo(); +?> --EXPECT-- object(C)#1 (0) { } diff --git a/Zend/tests/throw/002.phpt b/Zend/tests/throw/002.phpt index 8736c27fc3..e80dfbb7d1 100644 --- a/Zend/tests/throw/002.phpt +++ b/Zend/tests/throw/002.phpt @@ -111,6 +111,7 @@ try { echo $e->getMessage() . "\n"; } +?> --EXPECT-- Not found Static not found diff --git a/Zend/tests/traits/bug60145.phpt b/Zend/tests/traits/bug60145.phpt index fa1dc9bf95..afa9e11e4d 100644 --- a/Zend/tests/traits/bug60145.phpt +++ b/Zend/tests/traits/bug60145.phpt @@ -13,5 +13,6 @@ interface MyInterface { public function b(); } +?> --EXPECTF-- Fatal error: Cannot use traits inside of interfaces. foo is used in MyInterface in %s on line %d diff --git a/Zend/tests/traits/bug60153.phpt b/Zend/tests/traits/bug60153.phpt index 5dcc78a878..0b9fe951ba 100644 --- a/Zend/tests/traits/bug60153.phpt +++ b/Zend/tests/traits/bug60153.phpt @@ -14,5 +14,6 @@ trait TFoo { class C implements IFoo { use TFoo; } +?> --EXPECTF-- Fatal error: Declaration of C::oneArgument() must be compatible with IFoo::oneArgument($a) in %s on line %d diff --git a/Zend/tests/traits/bug60165a.phpt b/Zend/tests/traits/bug60165a.phpt index 6bc3352e21..a03b5d8c7e 100644 --- a/Zend/tests/traits/bug60165a.phpt +++ b/Zend/tests/traits/bug60165a.phpt @@ -12,5 +12,6 @@ class MyClass { nonExistent as barA; } } +?> --EXPECTF-- Fatal error: An alias (barA) was defined for method nonExistent(), but this method does not exist in %s on line %d diff --git a/Zend/tests/traits/bug60165b.phpt b/Zend/tests/traits/bug60165b.phpt index ac3f070bd8..30ca028140 100644 --- a/Zend/tests/traits/bug60165b.phpt +++ b/Zend/tests/traits/bug60165b.phpt @@ -12,5 +12,6 @@ class MyClass { A::nonExistent as barA; } } +?> --EXPECTF-- Fatal error: An alias was defined for A::nonExistent but this method does not exist in %s on line %d diff --git a/Zend/tests/traits/bug60165c.phpt b/Zend/tests/traits/bug60165c.phpt index 9a8458d65d..bf36a4598f 100644 --- a/Zend/tests/traits/bug60165c.phpt +++ b/Zend/tests/traits/bug60165c.phpt @@ -17,5 +17,6 @@ class MyClass { baz as foobar; } } +?> --EXPECTF-- Fatal error: An alias (foobar) was defined for method baz(), but this method does not exist in %s on line %d diff --git a/Zend/tests/traits/bug60165d.phpt b/Zend/tests/traits/bug60165d.phpt index 6b4a09d059..b0a68d1d6a 100644 --- a/Zend/tests/traits/bug60165d.phpt +++ b/Zend/tests/traits/bug60165d.phpt @@ -16,5 +16,6 @@ class MyClass { A::bar insteadof B; } } +?> --EXPECTF-- Fatal error: A precedence rule was defined for A::bar but this method does not exist in %s on line %d diff --git a/Zend/tests/traits/bug60173.phpt b/Zend/tests/traits/bug60173.phpt index d4683a9921..be7f652bf9 100644 --- a/Zend/tests/traits/bug60173.phpt +++ b/Zend/tests/traits/bug60173.phpt @@ -7,6 +7,7 @@ trait foo { } $rc = new ReflectionClass('foo'); $rc->newInstance(); +?> --EXPECTF-- Fatal error: Uncaught Error: Cannot instantiate trait foo in %s:%d Stack trace: diff --git a/Zend/tests/traits/bug60217a.phpt b/Zend/tests/traits/bug60217a.phpt index 20132370c1..c9b4dd4dab 100644 --- a/Zend/tests/traits/bug60217a.phpt +++ b/Zend/tests/traits/bug60217a.phpt @@ -21,5 +21,6 @@ class C { $o = new C; $o->foo(); +?> --EXPECT-- C::foo() works. diff --git a/Zend/tests/traits/bug60217b.phpt b/Zend/tests/traits/bug60217b.phpt index 05a3adc700..3135be093d 100644 --- a/Zend/tests/traits/bug60217b.phpt +++ b/Zend/tests/traits/bug60217b.phpt @@ -21,5 +21,6 @@ class CBroken { $o = new CBroken; $o->foo(1); +?> --EXPECTF-- Fatal error: Declaration of CBroken::foo($a) must be compatible with TBroken2::foo($a, $b = 0) in %s on line %d diff --git a/Zend/tests/traits/bug60217c.phpt b/Zend/tests/traits/bug60217c.phpt index 334487aeaa..23da36df37 100644 --- a/Zend/tests/traits/bug60217c.phpt +++ b/Zend/tests/traits/bug60217c.phpt @@ -21,5 +21,6 @@ class CBroken { $o = new CBroken; $o->foo(1); +?> --EXPECTF-- Fatal error: Declaration of CBroken::foo($a) must be compatible with TBroken1::foo($a, $b = 0) in %s on line %d diff --git a/Zend/tests/traits/bug60717.phpt b/Zend/tests/traits/bug60717.phpt index 1ea146c5a0..dc9175ac67 100644 --- a/Zend/tests/traits/bug60717.phpt +++ b/Zend/tests/traits/bug60717.phpt @@ -68,5 +68,6 @@ namespace HTML $o = new HTMLHelper6; echo 'Done'; } +?> --EXPECT-- Done diff --git a/Zend/tests/traits/bug61052.phpt b/Zend/tests/traits/bug61052.phpt index 421e9074e5..720d8dcdc7 100644 --- a/Zend/tests/traits/bug61052.phpt +++ b/Zend/tests/traits/bug61052.phpt @@ -14,5 +14,6 @@ class C { } } C::foo(); +?> --EXPECTF-- Fatal error: Inconsistent insteadof definition. The method foo is to be used from T1, but T1 is also on the exclude list in %s on line %d diff --git a/Zend/tests/traits/bug61998.phpt b/Zend/tests/traits/bug61998.phpt index 097073892f..2ce251ea81 100644 --- a/Zend/tests/traits/bug61998.phpt +++ b/Zend/tests/traits/bug61998.phpt @@ -57,6 +57,7 @@ $b->func2(); //from Bar $b->newFunc2(); //from T2 $b->newFunc3(); //from T2 $b->func3(); //from Bar +?> --EXPECT-- From T1 From Foo diff --git a/Zend/tests/traits/bug63911.phpt b/Zend/tests/traits/bug63911.phpt index 72892cdd34..ea2e8067fa 100644 --- a/Zend/tests/traits/bug63911.phpt +++ b/Zend/tests/traits/bug63911.phpt @@ -22,5 +22,6 @@ class D } (new D)->a(); +?> --EXPECT-- Done diff --git a/Zend/tests/traits/bug65576a.phpt b/Zend/tests/traits/bug65576a.phpt index 51d2463808..33fc1c9227 100644 --- a/Zend/tests/traits/bug65576a.phpt +++ b/Zend/tests/traits/bug65576a.phpt @@ -25,5 +25,6 @@ class B extends A } new B(); +?> --EXPECT-- Trait constructor diff --git a/Zend/tests/traits/bug65576b.phpt b/Zend/tests/traits/bug65576b.phpt index c13ce8c2e1..41a521b67b 100644 --- a/Zend/tests/traits/bug65576b.phpt +++ b/Zend/tests/traits/bug65576b.phpt @@ -26,6 +26,7 @@ class B extends A } new B(); +?> --EXPECT-- Parent constructor Trait constructor diff --git a/Zend/tests/traits/bug76700.phpt b/Zend/tests/traits/bug76700.phpt index a9797f3c9e..e263e9b36f 100644 --- a/Zend/tests/traits/bug76700.phpt +++ b/Zend/tests/traits/bug76700.phpt @@ -26,5 +26,6 @@ class B extends A $b = new B(); $b->aa(); +?> --EXPECT-- 123 diff --git a/Zend/tests/traits/bug76773.phpt b/Zend/tests/traits/bug76773.phpt index 683952025d..4ab53bf6d1 100644 --- a/Zend/tests/traits/bug76773.phpt +++ b/Zend/tests/traits/bug76773.phpt @@ -27,6 +27,7 @@ class ChildClass extends ParentClass $c = new ChildClass(); $c->hello(); +?> --EXPECT-- ChildClass ParentClass diff --git a/Zend/tests/traits/language015.phpt b/Zend/tests/traits/language015.phpt index 1d92529323..d8fcd593b6 100644 --- a/Zend/tests/traits/language015.phpt +++ b/Zend/tests/traits/language015.phpt @@ -13,5 +13,6 @@ class C { T2::foo insteadof T1; } } +?> --EXPECTF-- Fatal error: Required Trait T2 wasn't added to C in %slanguage015.php on line %d diff --git a/Zend/tests/traits/language016.phpt b/Zend/tests/traits/language016.phpt index 2c07235fe9..0239ae342d 100644 --- a/Zend/tests/traits/language016.phpt +++ b/Zend/tests/traits/language016.phpt @@ -13,5 +13,6 @@ class C { T1::foo insteadof T2; } } +?> --EXPECTF-- Fatal error: Required Trait T2 wasn't added to C in %slanguage016.php on line %d diff --git a/Zend/tests/traits/language017.phpt b/Zend/tests/traits/language017.phpt index 68169f9ba5..12a1643450 100644 --- a/Zend/tests/traits/language017.phpt +++ b/Zend/tests/traits/language017.phpt @@ -13,5 +13,6 @@ class C { T2::foo as private; } } +?> --EXPECTF-- Fatal error: Required Trait T2 wasn't added to C in %slanguage017.php on line %d diff --git a/Zend/tests/try/bug72213_2.phpt b/Zend/tests/try/bug72213_2.phpt index 790abe125d..a9b5f1490b 100644 --- a/Zend/tests/try/bug72213_2.phpt +++ b/Zend/tests/try/bug72213_2.phpt @@ -21,5 +21,6 @@ try { } catch (Exception $e) { echo "caught {$e->getMessage()}\n"; } +?> --EXPECT-- caught 1 diff --git a/Zend/tests/try/bug72629.phpt b/Zend/tests/try/bug72629.phpt index 2e8e40d6b2..f22c955693 100644 --- a/Zend/tests/try/bug72629.phpt +++ b/Zend/tests/try/bug72629.phpt @@ -11,5 +11,6 @@ try { } catch (Exception $e) { } var_dump($var === $e); +?> --EXPECT-- bool(true) diff --git a/Zend/tests/try/bug74444.phpt b/Zend/tests/try/bug74444.phpt index 949f83cb23..8b0f1dbd6d 100644 --- a/Zend/tests/try/bug74444.phpt +++ b/Zend/tests/try/bug74444.phpt @@ -72,5 +72,6 @@ function foo() } foo(); +?> --EXPECT-- 12 diff --git a/Zend/tests/try/catch_novar_1.phpt b/Zend/tests/try/catch_novar_1.phpt index 80e93f3b95..9b9100c1bf 100644 --- a/Zend/tests/try/catch_novar_1.phpt +++ b/Zend/tests/try/catch_novar_1.phpt @@ -25,6 +25,7 @@ try { echo "FAIL\n"; } +?> --EXPECT-- Exception Exception diff --git a/Zend/tests/try/try_finally_010.phpt b/Zend/tests/try/try_finally_010.phpt index 8d5fa1e431..761cbc7f63 100644 --- a/Zend/tests/try/try_finally_010.phpt +++ b/Zend/tests/try/try_finally_010.phpt @@ -26,5 +26,6 @@ try { echo "6"; } echo "\n"; +?> --EXPECT-- 123456 diff --git a/Zend/tests/type_declarations/callable_001.phpt b/Zend/tests/type_declarations/callable_001.phpt index 6b555f40e6..41b057abf6 100644 --- a/Zend/tests/type_declarations/callable_001.phpt +++ b/Zend/tests/type_declarations/callable_001.phpt @@ -17,6 +17,7 @@ foo("foo"); foo($closure); foo(array("bar", "foo")); foo(array("bar", "baz")); +?> --EXPECTF-- string(6) "strpos" string(3) "foo" diff --git a/Zend/tests/type_declarations/iterable_001.phpt b/Zend/tests/type_declarations/iterable_001.phpt index e5f21957ba..10a001dea0 100644 --- a/Zend/tests/type_declarations/iterable_001.phpt +++ b/Zend/tests/type_declarations/iterable_001.phpt @@ -22,6 +22,7 @@ try { } catch (Throwable $e) { echo $e->getMessage(); } +?> --EXPECTF-- array(3) { [0]=> diff --git a/Zend/tests/type_declarations/scalar_none.phpt b/Zend/tests/type_declarations/scalar_none.phpt index a1029b830f..5b639757c0 100644 --- a/Zend/tests/type_declarations/scalar_none.phpt +++ b/Zend/tests/type_declarations/scalar_none.phpt @@ -23,6 +23,7 @@ foreach ($functions as $type => $function) { } } echo PHP_EOL . "Done"; +?> --EXPECTF-- Testing int: *** Caught Too few arguments to function {closure}(), 0 passed in %s on line %d and exactly 1 expected diff --git a/Zend/tests/type_declarations/scalar_reserved2.phpt b/Zend/tests/type_declarations/scalar_reserved2.phpt index 893f4b542a..4e1cca3d40 100644 --- a/Zend/tests/type_declarations/scalar_reserved2.phpt +++ b/Zend/tests/type_declarations/scalar_reserved2.phpt @@ -4,5 +4,6 @@ Scalar type names cannot be used as class, trait or interface names (2) <?php class int {} +?> --EXPECTF-- Fatal error: Cannot use 'int' as class name as it is reserved in %s on line %d diff --git a/Zend/tests/type_declarations/scalar_reserved2_class_alias.phpt b/Zend/tests/type_declarations/scalar_reserved2_class_alias.phpt index 777cf9cebe..ae9e890516 100644 --- a/Zend/tests/type_declarations/scalar_reserved2_class_alias.phpt +++ b/Zend/tests/type_declarations/scalar_reserved2_class_alias.phpt @@ -5,5 +5,6 @@ Scalar type names cannot be used as class, trait or interface names (2) - class_ class foobar {} class_alias("foobar", "int"); +?> --EXPECTF-- Fatal error: Cannot use 'int' as class name as it is reserved in %s on line %d diff --git a/Zend/tests/type_declarations/scalar_reserved2_use.phpt b/Zend/tests/type_declarations/scalar_reserved2_use.phpt index 3e8d1be88d..63af0b11f7 100644 --- a/Zend/tests/type_declarations/scalar_reserved2_use.phpt +++ b/Zend/tests/type_declarations/scalar_reserved2_use.phpt @@ -4,5 +4,6 @@ Scalar type names cannot be used as class, trait or interface names (2) - use <?php use foobar as int; +?> --EXPECTF-- Fatal error: Cannot use foobar as int because 'int' is a special class name in %s on line %d diff --git a/Zend/tests/type_declarations/scalar_reserved3.phpt b/Zend/tests/type_declarations/scalar_reserved3.phpt index 433673e714..932bf624cc 100644 --- a/Zend/tests/type_declarations/scalar_reserved3.phpt +++ b/Zend/tests/type_declarations/scalar_reserved3.phpt @@ -4,5 +4,6 @@ Scalar type names cannot be used as class, trait or interface names (3) <?php class float {} +?> --EXPECTF-- Fatal error: Cannot use 'float' as class name as it is reserved in %s on line %d diff --git a/Zend/tests/type_declarations/scalar_reserved3_class_alias.phpt b/Zend/tests/type_declarations/scalar_reserved3_class_alias.phpt index dc8f319886..a7387495a3 100644 --- a/Zend/tests/type_declarations/scalar_reserved3_class_alias.phpt +++ b/Zend/tests/type_declarations/scalar_reserved3_class_alias.phpt @@ -5,5 +5,6 @@ Scalar type names cannot be used as class, trait or interface names (3) - class_ class foobar {} class_alias("foobar", "float"); +?> --EXPECTF-- Fatal error: Cannot use 'float' as class name as it is reserved in %s on line %d diff --git a/Zend/tests/type_declarations/scalar_reserved3_use.phpt b/Zend/tests/type_declarations/scalar_reserved3_use.phpt index af76abf498..094ac8ebec 100644 --- a/Zend/tests/type_declarations/scalar_reserved3_use.phpt +++ b/Zend/tests/type_declarations/scalar_reserved3_use.phpt @@ -4,5 +4,6 @@ Scalar type names cannot be used as class, trait or interface names (3) - use <?php use foobar as float; +?> --EXPECTF-- Fatal error: Cannot use foobar as float because 'float' is a special class name in %s on line %d diff --git a/Zend/tests/type_declarations/scalar_reserved4.phpt b/Zend/tests/type_declarations/scalar_reserved4.phpt index dd5ff8922e..7cd5ae5775 100644 --- a/Zend/tests/type_declarations/scalar_reserved4.phpt +++ b/Zend/tests/type_declarations/scalar_reserved4.phpt @@ -4,5 +4,6 @@ Scalar type names cannot be used as class, trait or interface names (4) <?php class string {} +?> --EXPECTF-- Fatal error: Cannot use 'string' as class name as it is reserved in %s on line %d diff --git a/Zend/tests/type_declarations/scalar_reserved4_class_alias.phpt b/Zend/tests/type_declarations/scalar_reserved4_class_alias.phpt index ebb6ac3201..311503ec61 100644 --- a/Zend/tests/type_declarations/scalar_reserved4_class_alias.phpt +++ b/Zend/tests/type_declarations/scalar_reserved4_class_alias.phpt @@ -5,5 +5,6 @@ Scalar type names cannot be used as class, trait or interface names (4) - class_ class foobar {} class_alias("foobar", "string"); +?> --EXPECTF-- Fatal error: Cannot use 'string' as class name as it is reserved in %s on line %d diff --git a/Zend/tests/type_declarations/scalar_reserved4_use.phpt b/Zend/tests/type_declarations/scalar_reserved4_use.phpt index e2fc0aeafe..0d068a4f61 100644 --- a/Zend/tests/type_declarations/scalar_reserved4_use.phpt +++ b/Zend/tests/type_declarations/scalar_reserved4_use.phpt @@ -4,5 +4,6 @@ Scalar type names cannot be used as class, trait or interface names (4) - use <?php use foobar as string; +?> --EXPECTF-- Fatal error: Cannot use foobar as string because 'string' is a special class name in %s on line %d diff --git a/Zend/tests/type_declarations/scalar_reserved6.phpt b/Zend/tests/type_declarations/scalar_reserved6.phpt index f84ec94790..dca439d212 100644 --- a/Zend/tests/type_declarations/scalar_reserved6.phpt +++ b/Zend/tests/type_declarations/scalar_reserved6.phpt @@ -4,5 +4,6 @@ Scalar type names cannot be used as class, trait or interface names (6) <?php class bool {} +?> --EXPECTF-- Fatal error: Cannot use 'bool' as class name as it is reserved in %s on line %d diff --git a/Zend/tests/type_declarations/scalar_reserved6_class_alias.phpt b/Zend/tests/type_declarations/scalar_reserved6_class_alias.phpt index 8a777eca7e..9aa060058a 100644 --- a/Zend/tests/type_declarations/scalar_reserved6_class_alias.phpt +++ b/Zend/tests/type_declarations/scalar_reserved6_class_alias.phpt @@ -5,5 +5,6 @@ Scalar type names cannot be used as class, trait or interface names (6) - class_ class foobar {} class_alias("foobar", "bool"); +?> --EXPECTF-- Fatal error: Cannot use 'bool' as class name as it is reserved in %s on line %d diff --git a/Zend/tests/type_declarations/scalar_reserved6_use.phpt b/Zend/tests/type_declarations/scalar_reserved6_use.phpt index e9de61ff87..a19a513b39 100644 --- a/Zend/tests/type_declarations/scalar_reserved6_use.phpt +++ b/Zend/tests/type_declarations/scalar_reserved6_use.phpt @@ -4,5 +4,6 @@ Scalar type names cannot be used as class, trait or interface names (6) - use <?php use foobar as bool; +?> --EXPECTF-- Fatal error: Cannot use foobar as bool because 'bool' is a special class name in %s on line %d diff --git a/Zend/tests/type_declarations/scalar_reserved7.phpt b/Zend/tests/type_declarations/scalar_reserved7.phpt index 1e23d59d79..1ab7a67204 100644 --- a/Zend/tests/type_declarations/scalar_reserved7.phpt +++ b/Zend/tests/type_declarations/scalar_reserved7.phpt @@ -5,5 +5,6 @@ Scalar type names cannot be used as class, trait or interface names (7) namespace foo; class int {} +?> --EXPECTF-- Fatal error: Cannot use 'int' as class name as it is reserved in %s on line %d diff --git a/Zend/tests/type_declarations/scalar_strict_declaration_placement_004.phpt b/Zend/tests/type_declarations/scalar_strict_declaration_placement_004.phpt index 60003241cf..3d60cf0575 100644 --- a/Zend/tests/type_declarations/scalar_strict_declaration_placement_004.phpt +++ b/Zend/tests/type_declarations/scalar_strict_declaration_placement_004.phpt @@ -13,5 +13,6 @@ namespace Foo { namespace { var_dump(Foo\add1(123)); } +?> --EXPECT-- int(124) diff --git a/Zend/tests/type_declarations/typed_properties_026.phpt b/Zend/tests/type_declarations/typed_properties_026.phpt index a2c4e25e33..7d01e927a0 100644 --- a/Zend/tests/type_declarations/typed_properties_026.phpt +++ b/Zend/tests/type_declarations/typed_properties_026.phpt @@ -15,6 +15,7 @@ class Baz{ } var_dump((new Baz)->get()); +?> --EXPECTF-- Fatal error: Uncaught Error: Typed property Baz::$baz must not be accessed before initialization in %s:10 Stack trace: diff --git a/Zend/tests/type_declarations/typed_properties_031.phpt b/Zend/tests/type_declarations/typed_properties_031.phpt index 8022d2ef72..f714966902 100644 --- a/Zend/tests/type_declarations/typed_properties_031.phpt +++ b/Zend/tests/type_declarations/typed_properties_031.phpt @@ -18,5 +18,6 @@ $bar = new Bar(); $bar->setBar(100); var_dump($bar->bar); +?> --EXPECT-- float(100) diff --git a/Zend/tests/type_declarations/typed_properties_032.phpt b/Zend/tests/type_declarations/typed_properties_032.phpt index 2542b6e9ec..93a900dbe4 100644 --- a/Zend/tests/type_declarations/typed_properties_032.phpt +++ b/Zend/tests/type_declarations/typed_properties_032.phpt @@ -11,5 +11,6 @@ $foo = new class { }; var_dump($foo->method()); +?> --EXPECT-- int(15) diff --git a/Zend/tests/type_declarations/typed_properties_035.phpt b/Zend/tests/type_declarations/typed_properties_035.phpt index 923f7a2a85..2fde156371 100644 --- a/Zend/tests/type_declarations/typed_properties_035.phpt +++ b/Zend/tests/type_declarations/typed_properties_035.phpt @@ -9,5 +9,6 @@ class Foo{ class Baz extends Foo{ public int $bar = 33; } +?> --EXPECTF-- Fatal error: Type of Baz::$bar must not be defined (as in class Foo) in %s on line 8 diff --git a/Zend/tests/type_declarations/typed_properties_037.phpt b/Zend/tests/type_declarations/typed_properties_037.phpt index 9a76791bcd..87efa3317a 100644 --- a/Zend/tests/type_declarations/typed_properties_037.phpt +++ b/Zend/tests/type_declarations/typed_properties_037.phpt @@ -7,6 +7,7 @@ $foo = new class { }; var_dump($foo); +?> --EXPECTF-- object(class@anonymous)#%d (1) { ["bar"]=> diff --git a/Zend/tests/type_declarations/typed_properties_038.phpt b/Zend/tests/type_declarations/typed_properties_038.phpt index 0ac406f9a6..4bb5b75a28 100644 --- a/Zend/tests/type_declarations/typed_properties_038.phpt +++ b/Zend/tests/type_declarations/typed_properties_038.phpt @@ -38,6 +38,7 @@ try { } var_dump($foo); +?> --EXPECTF-- string(82) "Cannot increment property class@anonymous::$bar of type int past its maximal value" object(class@anonymous)#1 (1) { diff --git a/Zend/tests/type_declarations/typed_properties_046.phpt b/Zend/tests/type_declarations/typed_properties_046.phpt index bb524fcf75..2048455fe5 100644 --- a/Zend/tests/type_declarations/typed_properties_046.phpt +++ b/Zend/tests/type_declarations/typed_properties_046.phpt @@ -21,6 +21,7 @@ for ($i = 0; $i < 5; $i++) { echo $e->getMessage() . "\n"; } } +?> --EXPECT-- Cannot assign string to property Foo::$bbb of type int Cannot assign string to property Foo::$bbb of type int |