diff options
author | Máté Kocsis <kocsismate@woohoolabs.com> | 2020-08-09 11:06:57 +0200 |
---|---|---|
committer | Máté Kocsis <kocsismate@woohoolabs.com> | 2020-08-09 22:03:36 +0200 |
commit | 7aacc705d03887c64a90489e367f4c40b46aa3c2 (patch) | |
tree | ec7388f82b37e8611c7513aa95678d7feae82329 /ext/opcache/tests | |
parent | 05478e985eb50c473054b4f1bf174f48ead78784 (diff) | |
download | php-git-7aacc705d03887c64a90489e367f4c40b46aa3c2.tar.gz |
Add many missing closing PHP tags to tests
Closes GH-5958
Diffstat (limited to 'ext/opcache/tests')
86 files changed, 92 insertions, 6 deletions
diff --git a/ext/opcache/tests/bug65510.phpt b/ext/opcache/tests/bug65510.phpt index 9043b58e12..9e0573a10e 100644 --- a/ext/opcache/tests/bug65510.phpt +++ b/ext/opcache/tests/bug65510.phpt @@ -16,6 +16,7 @@ function parseQuery() { } parseQuery(); echo "ok\n"; +?> --EXPECT-- Deprecated: Directive 'allow_url_include' is deprecated in Unknown on line 0 ok diff --git a/ext/opcache/tests/bug65665.phpt b/ext/opcache/tests/bug65665.phpt index bcdd0e6da1..fc49bf83fd 100644 --- a/ext/opcache/tests/bug65665.phpt +++ b/ext/opcache/tests/bug65665.phpt @@ -112,6 +112,7 @@ dummy: return; } foo();foo1();foo2(); +?> --EXPECT-- correct correct diff --git a/ext/opcache/tests/bug66176.phpt b/ext/opcache/tests/bug66176.phpt index a7c53c1690..c6f7a573f1 100644 --- a/ext/opcache/tests/bug66176.phpt +++ b/ext/opcache/tests/bug66176.phpt @@ -15,5 +15,6 @@ function foo($v) { } $a = array(PHP_VERSION => 1); var_dump(foo(PHP_VERSION)); +?> --EXPECT-- int(1) diff --git a/ext/opcache/tests/bug66334.phpt b/ext/opcache/tests/bug66334.phpt index 33e3847e34..3da9a7657d 100644 --- a/ext/opcache/tests/bug66334.phpt +++ b/ext/opcache/tests/bug66334.phpt @@ -15,5 +15,6 @@ if (extension_loaded("unknown_extension")) { } else { var_dump(2); } +?> --EXPECT-- int(2) diff --git a/ext/opcache/tests/bug66440.phpt b/ext/opcache/tests/bug66440.phpt index 539b0ce7aa..4efcb6f221 100644 --- a/ext/opcache/tests/bug66440.phpt +++ b/ext/opcache/tests/bug66440.phpt @@ -12,5 +12,6 @@ opcache.file_update_protection=0 if(constant('PHP_BINARY')) { echo "OK\n"; } +?> --EXPECT-- OK diff --git a/ext/opcache/tests/bug66461.phpt b/ext/opcache/tests/bug66461.phpt index 2d09feff58..57642b0a16 100644 --- a/ext/opcache/tests/bug66461.phpt +++ b/ext/opcache/tests/bug66461.phpt @@ -12,5 +12,6 @@ opcache.interned_strings_buffer=0 --FILE-- <?php echo "ok\n"; +?> --EXPECT-- ok diff --git a/ext/opcache/tests/bug66474.phpt b/ext/opcache/tests/bug66474.phpt index 10d54a7fa5..b1ea509c23 100644 --- a/ext/opcache/tests/bug66474.phpt +++ b/ext/opcache/tests/bug66474.phpt @@ -14,5 +14,6 @@ function foo() { } foo(); echo "ok\n"; +?> --EXPECT-- ok diff --git a/ext/opcache/tests/bug73402.phpt b/ext/opcache/tests/bug73402.phpt index d245d58969..a0354c3c62 100644 --- a/ext/opcache/tests/bug73402.phpt +++ b/ext/opcache/tests/bug73402.phpt @@ -25,5 +25,6 @@ class B $b = new B; $b->test(); +?> --EXPECT-- test diff --git a/ext/opcache/tests/bug74663.phpt b/ext/opcache/tests/bug74663.phpt index 32248b80a1..ed67c5410f 100644 --- a/ext/opcache/tests/bug74663.phpt +++ b/ext/opcache/tests/bug74663.phpt @@ -21,5 +21,6 @@ var_dump(is_file($file)); --CLEAN-- <?php unlink(__DIR__ . "/bug74663.inc"); +?> --EXPECT-- bool(true) diff --git a/ext/opcache/tests/bug76275.phpt b/ext/opcache/tests/bug76275.phpt index 56a47316b4..228aa06b4e 100644 --- a/ext/opcache/tests/bug76275.phpt +++ b/ext/opcache/tests/bug76275.phpt @@ -24,5 +24,6 @@ if (!is_callable('random_bytes')) { return ''; } } +?> --EXPECT-- Done diff --git a/ext/opcache/tests/bug76337.phpt b/ext/opcache/tests/bug76337.phpt index 5001942526..384bb074ed 100644 --- a/ext/opcache/tests/bug76337.phpt +++ b/ext/opcache/tests/bug76337.phpt @@ -9,5 +9,6 @@ opcache.enable_cli=1 --FILE-- <?php var_dump(class_exists('_ZendTestClassAlias')); +?> --EXPECT-- bool(true) diff --git a/ext/opcache/tests/bug77743.phpt b/ext/opcache/tests/bug77743.phpt index f9075a3a7f..7a8967b24e 100644 --- a/ext/opcache/tests/bug77743.phpt +++ b/ext/opcache/tests/bug77743.phpt @@ -15,5 +15,6 @@ function buggy($a) { } buggy(42); +?> --EXPECT-- int(42) diff --git a/ext/opcache/tests/issue0079.phpt b/ext/opcache/tests/issue0079.phpt index 4458fce5bc..6d8e60ea5f 100644 --- a/ext/opcache/tests/issue0079.phpt +++ b/ext/opcache/tests/issue0079.phpt @@ -29,6 +29,7 @@ class Test { $t = new Test(); var_dump ($t->run()); +?> --EXPECT-- bool(true) bool(true) diff --git a/ext/opcache/tests/issue0183.phpt b/ext/opcache/tests/issue0183.phpt index 26da4d97cc..49e9d78d39 100644 --- a/ext/opcache/tests/issue0183.phpt +++ b/ext/opcache/tests/issue0183.phpt @@ -21,5 +21,6 @@ switch (PHP_OS) { default: break; } +?> --EXPECT-- okey diff --git a/ext/opcache/tests/jit/assign_001.phpt b/ext/opcache/tests/jit/assign_001.phpt index 959659cff1..0c7f95944b 100644 --- a/ext/opcache/tests/jit/assign_001.phpt +++ b/ext/opcache/tests/jit/assign_001.phpt @@ -19,6 +19,7 @@ function foo() { var_dump($x, $b, $c); } foo(); +?> --EXPECT-- int(1) array(0) { diff --git a/ext/opcache/tests/jit/assign_002.phpt b/ext/opcache/tests/jit/assign_002.phpt index 355fdd4472..db00ce70c2 100644 --- a/ext/opcache/tests/jit/assign_002.phpt +++ b/ext/opcache/tests/jit/assign_002.phpt @@ -21,6 +21,7 @@ function foo() { var_dump($x, $b, $c); } foo(); +?> --EXPECT-- float(2.3) array(0) { diff --git a/ext/opcache/tests/jit/assign_003.phpt b/ext/opcache/tests/jit/assign_003.phpt index 7e885d38aa..5926391d81 100644 --- a/ext/opcache/tests/jit/assign_003.phpt +++ b/ext/opcache/tests/jit/assign_003.phpt @@ -17,5 +17,6 @@ function foo() { var_dump($x); } foo(); +?> --EXPECT-- int(1) diff --git a/ext/opcache/tests/jit/assign_004.phpt b/ext/opcache/tests/jit/assign_004.phpt index 70c25bc888..097b5a15aa 100644 --- a/ext/opcache/tests/jit/assign_004.phpt +++ b/ext/opcache/tests/jit/assign_004.phpt @@ -20,5 +20,6 @@ function foo() { return $c; } var_dump(foo()); +?> --EXPECT-- int(1) diff --git a/ext/opcache/tests/jit/assign_005.phpt b/ext/opcache/tests/jit/assign_005.phpt index d3f9dca61c..b96044bdec 100644 --- a/ext/opcache/tests/jit/assign_005.phpt +++ b/ext/opcache/tests/jit/assign_005.phpt @@ -20,5 +20,6 @@ function foo() { return $c; } var_dump(foo()); +?> --EXPECT-- int(1) diff --git a/ext/opcache/tests/jit/assign_006.phpt b/ext/opcache/tests/jit/assign_006.phpt index 6efc98fe0f..c837f01a39 100644 --- a/ext/opcache/tests/jit/assign_006.phpt +++ b/ext/opcache/tests/jit/assign_006.phpt @@ -18,5 +18,6 @@ function foo() { return $c; } var_dump(foo()); +?> --EXPECT-- int(1) diff --git a/ext/opcache/tests/jit/assign_007.phpt b/ext/opcache/tests/jit/assign_007.phpt index f54ede5ec5..2575c614d4 100644 --- a/ext/opcache/tests/jit/assign_007.phpt +++ b/ext/opcache/tests/jit/assign_007.phpt @@ -17,5 +17,6 @@ function foo() { var_dump($a); } foo(); +?> --EXPECT-- int(1) diff --git a/ext/opcache/tests/jit/assign_008.phpt b/ext/opcache/tests/jit/assign_008.phpt index 22b6a465f5..c237711d0d 100644 --- a/ext/opcache/tests/jit/assign_008.phpt +++ b/ext/opcache/tests/jit/assign_008.phpt @@ -17,5 +17,6 @@ function foo() { var_dump($a); } foo(); +?> --EXPECT-- float(1) diff --git a/ext/opcache/tests/jit/assign_009.phpt b/ext/opcache/tests/jit/assign_009.phpt index 6772e9028f..3d3c5d1090 100644 --- a/ext/opcache/tests/jit/assign_009.phpt +++ b/ext/opcache/tests/jit/assign_009.phpt @@ -17,5 +17,6 @@ function foo() { } foo(); echo "ok\n"; +?> --EXPECT-- ok diff --git a/ext/opcache/tests/jit/assign_010.phpt b/ext/opcache/tests/jit/assign_010.phpt index 77886de67a..e38d368e76 100644 --- a/ext/opcache/tests/jit/assign_010.phpt +++ b/ext/opcache/tests/jit/assign_010.phpt @@ -17,5 +17,6 @@ function foo() { } foo(); echo "ok\n"; +?> --EXPECT-- ok diff --git a/ext/opcache/tests/jit/assign_011.phpt b/ext/opcache/tests/jit/assign_011.phpt index dc9b5e756c..71b051158b 100644 --- a/ext/opcache/tests/jit/assign_011.phpt +++ b/ext/opcache/tests/jit/assign_011.phpt @@ -23,6 +23,7 @@ function foo() { var_dump($b, $c); } foo(); +?> --EXPECT-- int(3) int(2) diff --git a/ext/opcache/tests/jit/assign_012.phpt b/ext/opcache/tests/jit/assign_012.phpt index 82d42d9b46..81eb19e849 100644 --- a/ext/opcache/tests/jit/assign_012.phpt +++ b/ext/opcache/tests/jit/assign_012.phpt @@ -23,6 +23,7 @@ function foo() { var_dump($b, $c); } foo(); +?> --EXPECT-- int(3) int(3) diff --git a/ext/opcache/tests/jit/assign_013.phpt b/ext/opcache/tests/jit/assign_013.phpt index a2da0b34d8..2983593bf5 100644 --- a/ext/opcache/tests/jit/assign_013.phpt +++ b/ext/opcache/tests/jit/assign_013.phpt @@ -17,5 +17,6 @@ function foo() { var_dump($c); } foo(); +?> --EXPECT-- int(2) diff --git a/ext/opcache/tests/jit/assign_014.phpt b/ext/opcache/tests/jit/assign_014.phpt index 0313753aff..d488ae860d 100644 --- a/ext/opcache/tests/jit/assign_014.phpt +++ b/ext/opcache/tests/jit/assign_014.phpt @@ -17,6 +17,7 @@ function foo() { var_dump($c); } foo(); +?> --EXPECT-- array(0) { } diff --git a/ext/opcache/tests/jit/assign_015.phpt b/ext/opcache/tests/jit/assign_015.phpt index 248259e328..233ef12d6e 100644 --- a/ext/opcache/tests/jit/assign_015.phpt +++ b/ext/opcache/tests/jit/assign_015.phpt @@ -17,5 +17,6 @@ function foo() { var_dump($c); } foo(); +?> --EXPECT-- int(2) diff --git a/ext/opcache/tests/jit/assign_016.phpt b/ext/opcache/tests/jit/assign_016.phpt index a2ba0e0a7f..4133d7bc0e 100644 --- a/ext/opcache/tests/jit/assign_016.phpt +++ b/ext/opcache/tests/jit/assign_016.phpt @@ -17,5 +17,6 @@ function foo() { return $c; } var_dump(foo()); +?> --EXPECT-- int(2) diff --git a/ext/opcache/tests/jit/assign_017.phpt b/ext/opcache/tests/jit/assign_017.phpt index 7aafdefd70..fb4044d5db 100644 --- a/ext/opcache/tests/jit/assign_017.phpt +++ b/ext/opcache/tests/jit/assign_017.phpt @@ -17,5 +17,6 @@ function foo() { return $c; } var_dump(foo()); +?> --EXPECT-- int(2) diff --git a/ext/opcache/tests/jit/assign_018.phpt b/ext/opcache/tests/jit/assign_018.phpt index 8b19921e28..fb0029f627 100644 --- a/ext/opcache/tests/jit/assign_018.phpt +++ b/ext/opcache/tests/jit/assign_018.phpt @@ -19,6 +19,7 @@ function foo() { var_dump($c, $d); } foo(); +?> --EXPECT-- int(2) array(0) { diff --git a/ext/opcache/tests/jit/assign_019.phpt b/ext/opcache/tests/jit/assign_019.phpt index 6c84c4fbad..de150716d4 100644 --- a/ext/opcache/tests/jit/assign_019.phpt +++ b/ext/opcache/tests/jit/assign_019.phpt @@ -19,6 +19,7 @@ function foo() { var_dump($c, $d); } foo(); +?> --EXPECT-- int(2) int(2) diff --git a/ext/opcache/tests/jit/assign_020.phpt b/ext/opcache/tests/jit/assign_020.phpt index 6d1ccc89b2..a92bc6d077 100644 --- a/ext/opcache/tests/jit/assign_020.phpt +++ b/ext/opcache/tests/jit/assign_020.phpt @@ -18,5 +18,6 @@ function foo() { var_dump($c); } foo(); +?> --EXPECT-- int(2) diff --git a/ext/opcache/tests/jit/assign_021.phpt b/ext/opcache/tests/jit/assign_021.phpt index caad315d3e..01bf9f6d84 100644 --- a/ext/opcache/tests/jit/assign_021.phpt +++ b/ext/opcache/tests/jit/assign_021.phpt @@ -18,6 +18,7 @@ function foo() { var_dump($b, $d); } foo(); +?> --EXPECT-- array(0) { } diff --git a/ext/opcache/tests/jit/assign_022.phpt b/ext/opcache/tests/jit/assign_022.phpt index 062b2f8950..187c995366 100644 --- a/ext/opcache/tests/jit/assign_022.phpt +++ b/ext/opcache/tests/jit/assign_022.phpt @@ -19,6 +19,7 @@ function foo() { } foo(); echo "ok\n"; +?> --EXPECTF-- Warning: Undefined variable $undef in %s on line %d ok diff --git a/ext/opcache/tests/jit/assign_023.phpt b/ext/opcache/tests/jit/assign_023.phpt index 5007917c1f..2c6a47b980 100644 --- a/ext/opcache/tests/jit/assign_023.phpt +++ b/ext/opcache/tests/jit/assign_023.phpt @@ -19,6 +19,7 @@ function foo() { } foo(); echo "ok\n"; +?> --EXPECTF-- Warning: Undefined variable $undef in %s on line %d ok diff --git a/ext/opcache/tests/jit/assign_024.phpt b/ext/opcache/tests/jit/assign_024.phpt index 5bc63887ab..541089b356 100644 --- a/ext/opcache/tests/jit/assign_024.phpt +++ b/ext/opcache/tests/jit/assign_024.phpt @@ -18,6 +18,7 @@ function foo() { } foo(); echo "ok\n"; +?> --EXPECTF-- Warning: Undefined variable $undef in %s on line %d ok diff --git a/ext/opcache/tests/jit/assign_025.phpt b/ext/opcache/tests/jit/assign_025.phpt index 79000baf0e..4a5b20cd69 100644 --- a/ext/opcache/tests/jit/assign_025.phpt +++ b/ext/opcache/tests/jit/assign_025.phpt @@ -19,6 +19,7 @@ function foo() { } foo(); echo "ok\n"; +?> --EXPECTF-- Warning: Undefined variable $ref in %s on line %d ok diff --git a/ext/opcache/tests/jit/assign_026.phpt b/ext/opcache/tests/jit/assign_026.phpt index 160d066b51..ccebcf53cd 100644 --- a/ext/opcache/tests/jit/assign_026.phpt +++ b/ext/opcache/tests/jit/assign_026.phpt @@ -21,5 +21,6 @@ function foo() { } foo(); echo "ok\n"; +?> --EXPECT-- ok diff --git a/ext/opcache/tests/jit/assign_027.phpt b/ext/opcache/tests/jit/assign_027.phpt index a704e3cdd6..12bc9d2109 100644 --- a/ext/opcache/tests/jit/assign_027.phpt +++ b/ext/opcache/tests/jit/assign_027.phpt @@ -18,5 +18,6 @@ function foo() { } foo(); echo "ok\n"; +?> --EXPECT-- ok diff --git a/ext/opcache/tests/jit/assign_028.phpt b/ext/opcache/tests/jit/assign_028.phpt index 95f076b206..6111ffff6d 100644 --- a/ext/opcache/tests/jit/assign_028.phpt +++ b/ext/opcache/tests/jit/assign_028.phpt @@ -16,6 +16,7 @@ function foo() { return $i; } var_dump(foo()); +?> --EXPECT-- int(1) int(1) diff --git a/ext/opcache/tests/jit/assign_029.phpt b/ext/opcache/tests/jit/assign_029.phpt index d79d235c7f..2ead0eda37 100644 --- a/ext/opcache/tests/jit/assign_029.phpt +++ b/ext/opcache/tests/jit/assign_029.phpt @@ -17,6 +17,7 @@ function foo() { return $i; } var_dump(foo()); +?> --EXPECT-- int(2) int(2) diff --git a/ext/opcache/tests/jit/assign_030.phpt b/ext/opcache/tests/jit/assign_030.phpt index 4f87b10f11..90c5ba75e3 100644 --- a/ext/opcache/tests/jit/assign_030.phpt +++ b/ext/opcache/tests/jit/assign_030.phpt @@ -18,6 +18,7 @@ function foo() { return $i; } var_dump(foo()); +?> --EXPECT-- int(2) int(2) diff --git a/ext/opcache/tests/jit/assign_033.phpt b/ext/opcache/tests/jit/assign_033.phpt index 918f3b6b57..931c0036fb 100644 --- a/ext/opcache/tests/jit/assign_033.phpt +++ b/ext/opcache/tests/jit/assign_033.phpt @@ -20,5 +20,6 @@ function foo() } } echo "ok\n"; +?> --EXPECT-- ok diff --git a/ext/opcache/tests/jit/assign_034.phpt b/ext/opcache/tests/jit/assign_034.phpt index 4fa7af3e9f..253767f499 100644 --- a/ext/opcache/tests/jit/assign_034.phpt +++ b/ext/opcache/tests/jit/assign_034.phpt @@ -17,5 +17,6 @@ function bar() { return $a; } var_dump(bar()); +?> --EXPECT-- int(2) diff --git a/ext/opcache/tests/jit/assign_dim_002.phpt b/ext/opcache/tests/jit/assign_dim_002.phpt index 135df92123..5e7a7e9cfd 100644 --- a/ext/opcache/tests/jit/assign_dim_002.phpt +++ b/ext/opcache/tests/jit/assign_dim_002.phpt @@ -81,6 +81,7 @@ function foo5() { } var_dump(foo5()); +?> --EXPECTF-- array(1) { [0]=> diff --git a/ext/opcache/tests/jit/fetch_dim_r_001.phpt b/ext/opcache/tests/jit/fetch_dim_r_001.phpt index 232f62cf75..9a630a47ed 100644 --- a/ext/opcache/tests/jit/fetch_dim_r_001.phpt +++ b/ext/opcache/tests/jit/fetch_dim_r_001.phpt @@ -30,6 +30,7 @@ function foo() { var_dump($a[$x . $y]); } foo(); +?> --EXPECT-- int(1) int(3) diff --git a/ext/opcache/tests/jit/fetch_dim_r_002.phpt b/ext/opcache/tests/jit/fetch_dim_r_002.phpt index 178071b115..566b0fa5bd 100644 --- a/ext/opcache/tests/jit/fetch_dim_r_002.phpt +++ b/ext/opcache/tests/jit/fetch_dim_r_002.phpt @@ -30,6 +30,7 @@ foo("2x"); $x=2; $y="x"; foo($x.$y); +?> --EXPECT-- int(1) int(3) diff --git a/ext/opcache/tests/jit/fetch_dim_r_003.phpt b/ext/opcache/tests/jit/fetch_dim_r_003.phpt index e0fb75ee48..07c76854fb 100644 --- a/ext/opcache/tests/jit/fetch_dim_r_003.phpt +++ b/ext/opcache/tests/jit/fetch_dim_r_003.phpt @@ -38,6 +38,7 @@ function foo() { var_dump($a[$x . $y]); } foo(); +?> --EXPECTF-- string(1) "A" string(1) "C" diff --git a/ext/opcache/tests/jit/fetch_dim_r_004.phpt b/ext/opcache/tests/jit/fetch_dim_r_004.phpt index 23c6bf4d0f..8e1fa714ce 100644 --- a/ext/opcache/tests/jit/fetch_dim_r_004.phpt +++ b/ext/opcache/tests/jit/fetch_dim_r_004.phpt @@ -34,6 +34,7 @@ foo("2x"); $x=2; $y="x"; foo($x.$y); +?> --EXPECTF-- string(1) "A" string(1) "C" diff --git a/ext/opcache/tests/jit/fetch_dim_rw_001.phpt b/ext/opcache/tests/jit/fetch_dim_rw_001.phpt index ffb869fe84..b5947cadd3 100644 --- a/ext/opcache/tests/jit/fetch_dim_rw_001.phpt +++ b/ext/opcache/tests/jit/fetch_dim_rw_001.phpt @@ -15,6 +15,7 @@ function foo() { return $a[0]; } var_dump(foo()); +?> --EXPECTF-- Warning: Undefined variable $a in %s on line %d diff --git a/ext/opcache/tests/jit/inc_001.phpt b/ext/opcache/tests/jit/inc_001.phpt index c3807303e7..88e3644875 100644 --- a/ext/opcache/tests/jit/inc_001.phpt +++ b/ext/opcache/tests/jit/inc_001.phpt @@ -18,5 +18,6 @@ function foo() { var_dump($x); } foo(); +?> --EXPECT-- int(2) diff --git a/ext/opcache/tests/jit/inc_002.phpt b/ext/opcache/tests/jit/inc_002.phpt index 4d2757ca75..8fa7bde9a3 100644 --- a/ext/opcache/tests/jit/inc_002.phpt +++ b/ext/opcache/tests/jit/inc_002.phpt @@ -17,5 +17,6 @@ function foo() { var_dump($x); } foo(); +?> --EXPECT-- int(2) diff --git a/ext/opcache/tests/jit/inc_003.phpt b/ext/opcache/tests/jit/inc_003.phpt index 9842527be7..cf13f5c4f1 100644 --- a/ext/opcache/tests/jit/inc_003.phpt +++ b/ext/opcache/tests/jit/inc_003.phpt @@ -18,5 +18,6 @@ function foo() { return $x; } var_dump(foo()); +?> --EXPECT-- int(2) diff --git a/ext/opcache/tests/jit/inc_004.phpt b/ext/opcache/tests/jit/inc_004.phpt index 6431020537..eedf88b1b8 100644 --- a/ext/opcache/tests/jit/inc_004.phpt +++ b/ext/opcache/tests/jit/inc_004.phpt @@ -17,5 +17,6 @@ function foo() { return $x; } var_dump(foo()); +?> --EXPECT-- int(2) diff --git a/ext/opcache/tests/jit/inc_005.phpt b/ext/opcache/tests/jit/inc_005.phpt index d784b092e9..325aa753bb 100644 --- a/ext/opcache/tests/jit/inc_005.phpt +++ b/ext/opcache/tests/jit/inc_005.phpt @@ -18,6 +18,7 @@ function foo() { var_dump($x); } foo(); +?> --EXPECT-- int(2) int(2) diff --git a/ext/opcache/tests/jit/inc_006.phpt b/ext/opcache/tests/jit/inc_006.phpt index 3ecff9e13d..a5ab397c38 100644 --- a/ext/opcache/tests/jit/inc_006.phpt +++ b/ext/opcache/tests/jit/inc_006.phpt @@ -17,6 +17,7 @@ function foo() { var_dump($x); } foo(); +?> --EXPECT-- int(2) int(2) diff --git a/ext/opcache/tests/jit/inc_007.phpt b/ext/opcache/tests/jit/inc_007.phpt index bb1634d731..e285d2730e 100644 --- a/ext/opcache/tests/jit/inc_007.phpt +++ b/ext/opcache/tests/jit/inc_007.phpt @@ -17,5 +17,6 @@ function foo() { return ++$x; // mem -> reg, reg } var_dump(foo()); +?> --EXPECT-- int(2) diff --git a/ext/opcache/tests/jit/inc_008.phpt b/ext/opcache/tests/jit/inc_008.phpt index d008cb094d..eff4bd041f 100644 --- a/ext/opcache/tests/jit/inc_008.phpt +++ b/ext/opcache/tests/jit/inc_008.phpt @@ -16,5 +16,6 @@ function foo() { return ++$x; // reg -> reg, reg } var_dump(foo()); +?> --EXPECT-- int(2) diff --git a/ext/opcache/tests/jit/inc_009.phpt b/ext/opcache/tests/jit/inc_009.phpt index e600cba7ad..a87c82ae68 100644 --- a/ext/opcache/tests/jit/inc_009.phpt +++ b/ext/opcache/tests/jit/inc_009.phpt @@ -18,5 +18,6 @@ function foo() { var_dump($x); } foo(); +?> --EXPECT-- float(2) diff --git a/ext/opcache/tests/jit/inc_010.phpt b/ext/opcache/tests/jit/inc_010.phpt index 105387d924..fa6b27e8ff 100644 --- a/ext/opcache/tests/jit/inc_010.phpt +++ b/ext/opcache/tests/jit/inc_010.phpt @@ -17,5 +17,6 @@ function foo() { var_dump($x); } foo(); +?> --EXPECT-- float(2) diff --git a/ext/opcache/tests/jit/inc_011.phpt b/ext/opcache/tests/jit/inc_011.phpt index d91c487965..051affc8a4 100644 --- a/ext/opcache/tests/jit/inc_011.phpt +++ b/ext/opcache/tests/jit/inc_011.phpt @@ -18,5 +18,6 @@ function foo() { return $x; } var_dump(foo()); +?> --EXPECT-- float(2) diff --git a/ext/opcache/tests/jit/inc_012.phpt b/ext/opcache/tests/jit/inc_012.phpt index 14fb5c1b90..7a6dd24ea7 100644 --- a/ext/opcache/tests/jit/inc_012.phpt +++ b/ext/opcache/tests/jit/inc_012.phpt @@ -17,5 +17,6 @@ function foo() { return $x; } var_dump(foo()); +?> --EXPECT-- float(2) diff --git a/ext/opcache/tests/jit/inc_013.phpt b/ext/opcache/tests/jit/inc_013.phpt index 2c2e5f0920..daa09ddad6 100644 --- a/ext/opcache/tests/jit/inc_013.phpt +++ b/ext/opcache/tests/jit/inc_013.phpt @@ -18,6 +18,7 @@ function foo() { var_dump($x); } foo(); +?> --EXPECT-- float(2) float(2) diff --git a/ext/opcache/tests/jit/inc_014.phpt b/ext/opcache/tests/jit/inc_014.phpt index e6f31f32f3..381d506e31 100644 --- a/ext/opcache/tests/jit/inc_014.phpt +++ b/ext/opcache/tests/jit/inc_014.phpt @@ -17,6 +17,7 @@ function foo() { var_dump($x); } foo(); +?> --EXPECT-- float(2) float(2) diff --git a/ext/opcache/tests/jit/inc_015.phpt b/ext/opcache/tests/jit/inc_015.phpt index d841dc0c9c..0573610587 100644 --- a/ext/opcache/tests/jit/inc_015.phpt +++ b/ext/opcache/tests/jit/inc_015.phpt @@ -17,5 +17,6 @@ function foo() { return ++$x; // mem -> reg, reg } var_dump(foo()); +?> --EXPECT-- float(2) diff --git a/ext/opcache/tests/jit/inc_016.phpt b/ext/opcache/tests/jit/inc_016.phpt index c1a6302e92..1a53043a14 100644 --- a/ext/opcache/tests/jit/inc_016.phpt +++ b/ext/opcache/tests/jit/inc_016.phpt @@ -16,5 +16,6 @@ function foo() { return ++$x; // reg -> reg, reg } var_dump(foo()); +?> --EXPECT-- float(2) diff --git a/ext/opcache/tests/jit/inc_017.phpt b/ext/opcache/tests/jit/inc_017.phpt index c52e018048..3f47bfe87a 100644 --- a/ext/opcache/tests/jit/inc_017.phpt +++ b/ext/opcache/tests/jit/inc_017.phpt @@ -16,5 +16,6 @@ function foo() { return ++$x; // reg -> reg, reg } var_dump(foo()); +?> --EXPECT-- bool(true) diff --git a/ext/opcache/tests/jit/inc_018.phpt b/ext/opcache/tests/jit/inc_018.phpt index c992fa528d..25f085a62e 100644 --- a/ext/opcache/tests/jit/inc_018.phpt +++ b/ext/opcache/tests/jit/inc_018.phpt @@ -16,5 +16,6 @@ function foo() { return ++$x; // reg -> reg, reg } var_dump(foo()); +?> --EXPECT-- bool(false) diff --git a/ext/opcache/tests/jit/inc_019.phpt b/ext/opcache/tests/jit/inc_019.phpt index e147ef6f2f..d9e5e9b588 100644 --- a/ext/opcache/tests/jit/inc_019.phpt +++ b/ext/opcache/tests/jit/inc_019.phpt @@ -22,6 +22,7 @@ function bar($b) { return $a; } var_dump(bar(0)); +?> --EXPECT-- int(2) int(3) diff --git a/ext/opcache/tests/jit/noval_001.phpt b/ext/opcache/tests/jit/noval_001.phpt index f3aa4a0d0e..47a7dc0481 100644 --- a/ext/opcache/tests/jit/noval_001.phpt +++ b/ext/opcache/tests/jit/noval_001.phpt @@ -29,6 +29,7 @@ class Foo { } } var_dump(Foo::bar()); +?> --EXPECT-- string(2) "ok" diff --git a/ext/opcache/tests/jit/recv_001.phpt b/ext/opcache/tests/jit/recv_001.phpt index 2213da5f57..b941786bb4 100644 --- a/ext/opcache/tests/jit/recv_001.phpt +++ b/ext/opcache/tests/jit/recv_001.phpt @@ -19,5 +19,6 @@ function test(array $args, $short_options, $long_options = null) test(array(), "d:e", 222, 3434); +?> --EXPECT-- okey diff --git a/ext/opcache/tests/jit/send_val_001.phpt b/ext/opcache/tests/jit/send_val_001.phpt index 8220b36f1a..dc5980f6e3 100644 --- a/ext/opcache/tests/jit/send_val_001.phpt +++ b/ext/opcache/tests/jit/send_val_001.phpt @@ -18,6 +18,7 @@ function foo($type) { } var_dump(foo("int")); var_dump(foo(["int"])); +?> --EXPECT-- string(32) "253a948ecc9192cb47e492f692aa63a8" string(32) "fa7153f7ed1cb6c0fcf2ffb2fac21748" diff --git a/ext/opcache/tests/jmp_elim_001.phpt b/ext/opcache/tests/jmp_elim_001.phpt index 69974a1fa0..4cc965388f 100644 --- a/ext/opcache/tests/jmp_elim_001.phpt +++ b/ext/opcache/tests/jmp_elim_001.phpt @@ -12,5 +12,6 @@ $info = array('arch' => $archName, 'webserver' =>$webserver); header('Content-Type: application/json'); echo json_encode($info) . "\n"; +?> --EXPECT-- {"arch":"64","webserver":"Apache"} diff --git a/ext/opcache/tests/match/001.phpt b/ext/opcache/tests/match/001.phpt index 7963733594..03770d2e95 100644 --- a/ext/opcache/tests/match/001.phpt +++ b/ext/opcache/tests/match/001.phpt @@ -24,6 +24,7 @@ foreach (range('a', 'i') as $char) { var_dump(test($char)); } +?> --EXPECTF-- $_main: ; (lines=15, args=0, vars=1, tmps=2) diff --git a/ext/opcache/tests/match/002.phpt b/ext/opcache/tests/match/002.phpt index 22f29eeb8b..73001bc020 100644 --- a/ext/opcache/tests/match/002.phpt +++ b/ext/opcache/tests/match/002.phpt @@ -27,6 +27,7 @@ function test2() { } test2(); +?> --EXPECTF-- $_main: ; (lines=5, args=0, vars=0, tmps=0) diff --git a/ext/opcache/tests/match/003.phpt b/ext/opcache/tests/match/003.phpt index f7f8896073..ff430d9ec8 100644 --- a/ext/opcache/tests/match/003.phpt +++ b/ext/opcache/tests/match/003.phpt @@ -25,6 +25,7 @@ foreach (range(0, 10) as $char) { var_dump(test($char)); } +?> --EXPECTF-- $_main: ; (lines=15, args=0, vars=1, tmps=2) diff --git a/ext/opcache/tests/match/004.phpt b/ext/opcache/tests/match/004.phpt index f84a0b832d..f7fed6d76c 100644 --- a/ext/opcache/tests/match/004.phpt +++ b/ext/opcache/tests/match/004.phpt @@ -30,11 +30,12 @@ foreach (range(0, 6) as $number) { var_dump(test((string) $number)); } +?> --EXPECTF-- $_main: ; (lines=22, args=0, vars=1, tmps=2) ; (after optimizer) - ; %s.php:1-24 + ; %s.php:1-25 0000 INIT_FCALL 2 %d string("range") 0001 SEND_VAL int(0) 1 0002 SEND_VAL int(6) 2 diff --git a/ext/opcache/tests/opt/dce_004.phpt b/ext/opcache/tests/opt/dce_004.phpt index 40d6e19eef..cdde1d8777 100644 --- a/ext/opcache/tests/opt/dce_004.phpt +++ b/ext/opcache/tests/opt/dce_004.phpt @@ -16,11 +16,12 @@ function foo(int $x, int $y) { $a = $y; return $a; } +?> --EXPECTF-- $_main: ; (lines=1, args=0, vars=0, tmps=0) ; (after optimizer) - ; %sdce_004.php:1-8 + ; %sdce_004.php:1-9 0000 RETURN int(1) foo: diff --git a/ext/opcache/tests/opt/dce_005.phpt b/ext/opcache/tests/opt/dce_005.phpt index c998e30482..9f9931b174 100644 --- a/ext/opcache/tests/opt/dce_005.phpt +++ b/ext/opcache/tests/opt/dce_005.phpt @@ -16,11 +16,12 @@ function foo(int $x) { $a = new A; $a->foo = $x; } +?> --EXPECTF-- $_main: ; (lines=1, args=0, vars=0, tmps=0) ; (after optimizer) - ; %sdce_005.php:1-8 + ; %sdce_005.php:1-9 0000 RETURN int(1) foo: diff --git a/ext/opcache/tests/opt/dce_006.phpt b/ext/opcache/tests/opt/dce_006.phpt index a6ff4fe4cf..21b7163db9 100644 --- a/ext/opcache/tests/opt/dce_006.phpt +++ b/ext/opcache/tests/opt/dce_006.phpt @@ -17,11 +17,12 @@ function foo(int $x) { $a = new A; $a->foo = $x; } +?> --EXPECTF-- $_main: ; (lines=1, args=0, vars=0, tmps=0) ; (after optimizer) - ; %sdce_006.php:1-9 + ; %sdce_006.php:1-10 0000 RETURN int(1) foo: diff --git a/ext/opcache/tests/opt/dce_007.phpt b/ext/opcache/tests/opt/dce_007.phpt index 3e3f7c532a..e7280b4710 100644 --- a/ext/opcache/tests/opt/dce_007.phpt +++ b/ext/opcache/tests/opt/dce_007.phpt @@ -15,11 +15,12 @@ function esc($x) { $b = [$a]; return $a; } +?> --EXPECTF-- $_main: ; (lines=1, args=0, vars=0, tmps=0) ; (after optimizer) - ; %sdce_007.php:1-7 + ; %sdce_007.php:1-8 0000 RETURN int(1) esc: diff --git a/ext/opcache/tests/opt/dce_008.phpt b/ext/opcache/tests/opt/dce_008.phpt index 39dda38722..31d0fc8b1b 100644 --- a/ext/opcache/tests/opt/dce_008.phpt +++ b/ext/opcache/tests/opt/dce_008.phpt @@ -15,11 +15,12 @@ function esc(int $x) { $b[0] = $a; return $a; } +?> --EXPECTF-- $_main: ; (lines=1, args=0, vars=0, tmps=0) ; (after optimizer) - ; %sdce_008.php:1-7 + ; %sdce_008.php:1-8 0000 RETURN int(1) esc: diff --git a/ext/opcache/tests/optimize_func_calls.phpt b/ext/opcache/tests/optimize_func_calls.phpt index 3e2a8dd8f4..5d74eaf8df 100644 --- a/ext/opcache/tests/optimize_func_calls.phpt +++ b/ext/opcache/tests/optimize_func_calls.phpt @@ -89,6 +89,7 @@ function ref(&$b) { $b = "changed"; return "ref"; } +?> --EXPECTF-- Array ( diff --git a/ext/opcache/tests/ssa_bug_008.phpt b/ext/opcache/tests/ssa_bug_008.phpt index adee4431b5..32c264304b 100644 --- a/ext/opcache/tests/ssa_bug_008.phpt +++ b/ext/opcache/tests/ssa_bug_008.phpt @@ -7,5 +7,6 @@ Incorrect CFG/SSA reconstruction if (!is_int($info = gc_collect_cycles()) || ($info < 100)) { echo gettype($info)."\n"; } +?> --EXPECT-- integer |