Skip to content

Commit f39b5c4

Browse files
committed
Close PHP tags in tests
Closes GH-12422
1 parent 1c9c3af commit f39b5c4

File tree

237 files changed

+252
-5
lines changed

Some content is hidden

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

237 files changed

+252
-5
lines changed

Zend/tests/bug54547.phpt

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ Bug #54547: wrong equality of string numbers near LONG_MAX with 64-bit longs
44
<?php
55
if (PHP_INT_MAX !== 9223372036854775807)
66
die("skip for 64-bit long systems only");
7+
?>
78
--FILE--
89
<?php
910
var_dump("9223372036854775807" == "9223372036854775808");

Zend/tests/bug61011.phpt

+1
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,6 @@ try {
3232
}
3333
}
3434
echo 'okey';
35+
?>
3536
--EXPECT--
3637
okey

Zend/tests/bug62097.phpt

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ Bug #62097: fix for bug #54547 is wrong for 32-bit machines
44
<?php
55
if (PHP_INT_MAX !== 2147483647)
66
die('skip for system with 32-bit wide longs only');
7+
?>
78
--FILE--
89
<?php
910
var_dump("02147483647" == "2147483647",

Zend/tests/bug62907.phpt

+1
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,6 @@ class C extends B {
1818
}
1919
}
2020
echo "okey";
21+
?>
2122
--EXPECT--
2223
okey

Zend/tests/bug64660.phpt

+1
Large diffs are not rendered by default.

Zend/tests/bug65969.phpt

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ Bug #65969 (Chain assignment with T_LIST failure)
55
$obj = new stdClass;
66
list($a,$b) = $obj->prop = [1,2];
77
var_dump($a,$b);
8+
?>
89
--EXPECT--
910
int(1)
1011
int(2)

Zend/tests/bug78454_1.phpt

+1
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@ Invalid consecutive numeric separators after hex literal
33
--FILE--
44
<?php
55
0x0__F;
6+
?>
67
--EXPECTF--
78
Parse error: syntax error, unexpected identifier "__F" in %s on line %d

Zend/tests/bug78454_2.phpt

+1
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@ Invalid consecutive numeric separators after binary literal
33
--FILE--
44
<?php
55
0b0__1
6+
?>
67
--EXPECTF--
78
Parse error: syntax error, unexpected identifier "__1" in %s on line %d

Zend/tests/generators/gh9801.phpt

+1
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,6 @@ function a() {
1717
}
1818

1919
foreach(a() as $v);
20+
?>
2021
--EXPECTF--
2122
Fatal error: Allowed memory size of %d bytes exhausted %s

Zend/tests/lsb_023.phpt

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ A::out();
2020
B::out();
2121
C::out();
2222
echo PHP_EOL;
23+
?>
2324
--EXPECT--
2425
A
2526
B

Zend/tests/lsb_024.phpt

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ class C extends A {
1919
A::out();
2020
B::out();
2121
C::out();
22+
?>
2223
--EXPECT--
2324
A
2425
B

Zend/tests/ns_063.phpt

+1
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,6 @@ class Bar {
1010
}
1111
new Bar();
1212
echo "ok\n";
13+
?>
1314
--EXPECT--
1415
ok

Zend/tests/stack_limit/stack_limit_005.phpt

+1
Original file line numberDiff line numberDiff line change
@@ -64,5 +64,6 @@ $test
6464
->f()->f()->f()->f()->f()->f()->f()->f()->f()->f()
6565
;
6666

67+
?>
6768
--EXPECTF--
6869
Fatal error: Maximum call stack size of %d bytes reached during compilation. Try splitting expression in %s on line %d

Zend/tests/stack_limit/stack_limit_013.phpt

+1
Original file line numberDiff line numberDiff line change
@@ -116,5 +116,6 @@ $test = [
116116
1
117117
];
118118

119+
?>
119120
--EXPECTF--
120121
Fatal error: Maximum call stack size of %d bytes reached during compilation. Try splitting expression in %s on line %d

Zend/tests/weakrefs/gh10043-001.phpt

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ gc_collect_cycles();
2121

2222
var_dump($map);
2323

24+
?>
2425
--EXPECTF--
2526
object(WeakMap)#%d (1) {
2627
[0]=>

Zend/tests/weakrefs/gh10043-002.phpt

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ gc_collect_cycles();
2121

2222
var_dump($map);
2323

24+
?>
2425
--EXPECTF--
2526
object(WeakMap)#%d (1) {
2627
[0]=>

Zend/tests/weakrefs/gh10043-003.phpt

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ gc_collect_cycles();
2626

2727
var_dump($ref->get());
2828

29+
?>
2930
--EXPECTF--
3031
object(WeakMap)#%d (1) {
3132
[0]=>

Zend/tests/weakrefs/gh10043-004.phpt

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ gc_collect_cycles();
2626

2727
var_dump($ref->get());
2828

29+
?>
2930
--EXPECTF--
3031
object(WeakMap)#%d (1) {
3132
[0]=>

Zend/tests/weakrefs/gh10043-005.phpt

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ gc_collect_cycles();
2626

2727
var_dump($map);
2828

29+
?>
2930
--EXPECTF--
3031
object(WeakMap)#%d (1) {
3132
[0]=>

Zend/tests/weakrefs/gh10043-006.phpt

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ gc_collect_cycles();
2323

2424
var_dump($map2);
2525

26+
?>
2627
--EXPECT--
2728
object(WeakMap)#1 (1) {
2829
[0]=>

Zend/tests/weakrefs/gh10043-007.phpt

+1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ unset($container, $canary);
2727
gc_collect_cycles();
2828
echo 2;
2929

30+
?>
3031
--EXPECT--
3132
1container
3233
canary

Zend/tests/weakrefs/gh10043-008.phpt

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ unset($canary);
2525
gc_collect_cycles();
2626
echo 2;
2727

28+
?>
2829
--EXPECT--
2930
1canary
3031
2

Zend/tests/weakrefs/gh10043-011.phpt

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ gc_collect_cycles();
1919

2020
var_dump($m);
2121

22+
?>
2223
--EXPECT--
2324
object(WeakMap)#1 (0) {
2425
}

Zend/tests/zend_ini/gh11876.phpt

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ var_dump(zend_test_zend_ini_parse_quantity('0g10'));
1919
var_dump(zend_test_zend_ini_parse_quantity('0m10'));
2020
var_dump(zend_test_zend_ini_parse_quantity('0k10'));
2121

22+
?>
2223
--EXPECTF--
2324
Warning: Invalid quantity "0x0x12": no digits after base prefix, interpreting as "0" for backwards compatibility in %s on line %d
2425
int(0)

Zend/tests/zend_ini/zend_ini_parse_quantity.phpt

+1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ foreach (['', ' '] as $leadingWS) {
3131
}
3232
}
3333
}
34+
?>
3435
--EXPECT--
3536
# "1"
3637
int(1)

Zend/tests/zend_ini/zend_ini_parse_quantity_binary_prefixes.phpt

+1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ foreach (['', ' '] as $leadingWS) {
2828
}
2929
}
3030
}
31+
?>
3132
--EXPECT--
3233
# "0b11"
3334
int(3)

Zend/tests/zend_ini/zend_ini_parse_quantity_error.phpt

+1
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ foreach ($tests as $setting) {
3636
var_dump(zend_test_zend_ini_parse_quantity($setting));
3737
print "\n";
3838
}
39+
?>
3940
--EXPECTF--
4041
# "K"
4142

Zend/tests/zend_ini/zend_ini_parse_quantity_hex_prefixes.phpt

+1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ foreach (['', ' '] as $leadingWS) {
2828
}
2929
}
3030
}
31+
?>
3132
--EXPECT--
3233
# "0x1F"
3334
int(31)

Zend/tests/zend_ini/zend_ini_parse_quantity_ini_set_error.phpt

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ zend_test
77

88
var_dump(ini_set("zend_test.quantity_value", "1MB"));
99
var_dump(ini_get("zend_test.quantity_value"));
10+
?>
1011
--EXPECTF--
1112
Warning: Invalid "zend_test.quantity_value" setting. Invalid quantity "1MB": unknown multiplier "B", interpreting as "1" for backwards compatibility in %s on line %d
1213
string(1) "0"

Zend/tests/zend_ini/zend_ini_parse_quantity_ini_setting_error.phpt

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ zend_test.quantity_value=1MB
88
<?php
99

1010
var_dump(ini_get("zend_test.quantity_value"));
11+
?>
1112
--EXPECTF--
1213
Warning: Invalid "zend_test.quantity_value" setting. Invalid quantity "1MB": unknown multiplier "B", interpreting as "1" for backwards compatibility in %s on line %d
1314
string(3) "1MB"

Zend/tests/zend_ini/zend_ini_parse_quantity_octal_prefixes.phpt

+1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ foreach (['', ' '] as $leadingWS) {
2828
}
2929
}
3030
}
31+
?>
3132
--EXPECT--
3233
# "0o14"
3334
int(12)

Zend/tests/zend_ini/zend_ini_parse_quantity_overflow.phpt

+1
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ foreach ($tests as $name => $value) {
4646
print "----------\n";
4747
}
4848

49+
?>
4950
--EXPECTF--
5051
# No overflow 001: "0"
5152
0

Zend/tests/zend_ini/zend_ini_parse_quantity_zero.phpt

+1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ foreach ($tests as $setting) {
2727
var_dump(zend_test_zend_ini_parse_quantity($setting));
2828
print "\n";
2929
}
30+
?>
3031
--EXPECT--
3132
# "0"
3233
int(0)

Zend/tests/zend_ini/zend_ini_parse_uquantity_overflow.phpt

+1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ foreach ($tests as $name => $value) {
3434
printf("# zend_test_zend_ini_parse_uquantity(\"-1\") === -1\n");
3535
var_dump(zend_test_zend_ini_parse_uquantity("-1") === -1);
3636

37+
?>
3738
--EXPECTF--
3839
# No overflow 001: "0"
3940
0

ext/curl/tests/curl_file_upload_stream.phpt

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ curl
55
--SKIPIF--
66
<?php
77
if (curl_version()['version_number'] < 0x73800) die('skip requires curl >= 7.56.0');
8+
?>
89
--FILE--
910
<?php
1011
include 'server.inc';

ext/dom/tests/DOMNode_removeChild_error1.phpt

+1
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,6 @@ try {
1616
} catch (DOMException $e) {
1717
echo "DOMException: " . $e->getMessage();
1818
}
19+
?>
1920
--EXPECT--
2021
DOMException: Not Found Error

ext/dom/tests/DOMNode_replaceChild_error1.phpt

+1
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,6 @@ try {
1717
} catch (DOMException $e) {
1818
echo "DOMException: " . $e->getMessage();
1919
}
20+
?>
2021
--EXPECT--
2122
DOMException: Not Found Error

ext/dom/tests/DOMNode_replaceChild_error2.phpt

+1
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,6 @@ try {
1515
} catch (DOMException $e) {
1616
echo "DOMException: " . $e->getMessage();
1717
}
18+
?>
1819
--EXPECT--
1920
DOMException: Hierarchy Request Error

ext/dom/tests/bug80600.phpt

+1
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,6 @@ $doc = new \DOMDocument();
99
$doc->loadXML('<a><!-- foo --></a>');
1010
$doc->documentElement->firstChild->remove();
1111
echo $doc->saveXML($doc->documentElement);
12+
?>
1213
--EXPECT--
1314
<a/>

ext/ffi/tests/gh10403.phpt

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ foreach ($test_values as $test_value) {
2121
var_dump($test_struct->y === $test_value);
2222
}
2323
var_dump($test_struct->x);
24+
?>
2425
--EXPECT--
2526
bool(true)
2627
bool(true)

ext/ftp/tests/dead-resource.phpt

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ try {
1818
} catch (ValueError $ex) {
1919
echo "Exception: ", $ex->getMessage(), "\n";
2020
}
21+
?>
2122
--EXPECT--
2223
bool(true)
2324
bool(true)

ext/ftp/tests/ftp_constructor.phpt

+1
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,6 @@ try {
1111
} catch (Error $ex) {
1212
echo "Exception: ", $ex->getMessage(), "\n";
1313
}
14+
?>
1415
--EXPECT--
1516
Exception: Cannot directly construct FTP\Connection, use ftp_connect() or ftp_ssl_connect() instead

ext/ftp/tests/ftp_set_option_errors.phpt

+1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ foreach ($options as $option) try {
2727
echo "Exception: ", $ex->getMessage(), "\n";
2828
}
2929

30+
?>
3031
--EXPECT--
3132
Exception: ftp_set_option(): Argument #3 ($value) must be greater than 0 for the FTP_TIMEOUT_SEC option
3233
Exception: ftp_set_option(): Argument #3 ($value) must be of type int for the FTP_TIMEOUT_SEC option, string given

ext/ftp/tests/ftp_ssl_connect_error.phpt

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ try {
2222
}
2323

2424
echo "===DONE===\n";
25+
?>
2526
--EXPECTF--
2627
*** Testing ftp_ssl_connect() function : error conditions ***
2728

ext/gettext/tests/gettext_dcgettext.phpt

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ gettext
88
if (!setlocale(LC_ALL, 'en_US.UTF-8')) {
99
die("skip en_US.UTF-8 locale not supported.");
1010
}
11+
?>
1112
--FILE--
1213
<?php
1314
chdir(__DIR__);

ext/gettext/tests/gettext_dgettext.phpt

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ gettext
88
if (!setlocale(LC_ALL, 'en_US.UTF-8')) {
99
die("SKIP en_US.UTF-8 locale not supported.");
1010
}
11+
?>
1112
--FILE--
1213
<?php
1314
chdir(__DIR__);

ext/gettext/tests/gettext_dngettext-plural.phpt

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ gettext
88
if (!setlocale(LC_ALL, 'en_US.UTF-8')) {
99
die("skip en_US.UTF-8 locale not supported.");
1010
}
11+
?>
1112
--FILE--
1213
<?php
1314
chdir(__DIR__);

ext/imap/tests/imap_constructor.phpt

+1
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,6 @@ try {
1010
} catch (Error $ex) {
1111
echo "Exception: ", $ex->getMessage(), "\n";
1212
}
13+
?>
1314
--EXPECT--
1415
Exception: Cannot directly construct IMAP\Connection, use imap_open() instead

ext/imap/tests/imap_final.phpt

+1
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,6 @@ imap
66
<?php
77

88
class T extends IMAP\Connection {}
9+
?>
910
--EXPECTF--
1011
Fatal error: Class T cannot extend final class IMAP\Connection in %s on line %d

ext/intl/tests/breakiter_preceding_basic2.phpt

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ intl
55
--SKIPIF--
66
<?php
77
if (version_compare(INTL_ICU_VERSION, '57.1') <= 0) die('skip for ICU >= 58.1');
8+
?>
89
--FILE--
910
<?php
1011
ini_set("intl.error_level", E_WARNING);

ext/intl/tests/bug62915-2.phpt

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ intl
66
<?php
77
if (!class_exists('Spoofchecker'))
88
die('skip intl extension does not have spoof checker');
9+
?>
910
--FILE--
1011
<?php
1112
class A extends IntlDateFormatter {

ext/intl/tests/calendar_getDayOfWeekType_basic.phpt

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ intl
88
<?php
99
if (version_compare(INTL_ICU_VERSION, '52.1') >= 0)
1010
die('skip for ICU < 52.1');
11+
?>
1112
--FILE--
1213
<?php
1314
ini_set("intl.error_level", E_WARNING);

0 commit comments

Comments
 (0)