summaryrefslogtreecommitdiff
path: root/tests/lang
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lang')
-rw-r--r--tests/lang/018.phpt1
-rw-r--r--tests/lang/019.phpt1
-rw-r--r--tests/lang/033.phpt1
-rw-r--r--tests/lang/bug24054.phpt1
-rw-r--r--tests/lang/bug29944.phpt1
-rw-r--r--tests/lang/bug35382.phpt1
-rw-r--r--tests/lang/bug43958.phpt1
-rw-r--r--tests/lang/foreach_with_references_001.phpt1
-rw-r--r--tests/lang/invalid_octal.phpt1
-rw-r--r--tests/lang/operators/nan-comparison-false.phpt1
-rw-r--r--tests/lang/operators/operator_identical_recusion-01.phpt1
-rw-r--r--tests/lang/returnByReference.009.phpt1
-rw-r--r--tests/lang/string/unicode_escape.phpt1
-rw-r--r--tests/lang/string/unicode_escape_empty.phpt1
-rw-r--r--tests/lang/string/unicode_escape_incomplete.phpt1
-rw-r--r--tests/lang/string/unicode_escape_large_codepoint.phpt1
-rw-r--r--tests/lang/string/unicode_escape_legacy.phpt1
-rw-r--r--tests/lang/string/unicode_escape_sign.phpt1
-rw-r--r--tests/lang/string/unicode_escape_sign2.phpt1
-rw-r--r--tests/lang/string/unicode_escape_surrogates.phpt1
-rw-r--r--tests/lang/string/unicode_escape_whitespace.phpt1
21 files changed, 19 insertions, 2 deletions
diff --git a/tests/lang/018.phpt b/tests/lang/018.phpt
index 7560219291..647bee8796 100644
--- a/tests/lang/018.phpt
+++ b/tests/lang/018.phpt
@@ -11,6 +11,7 @@ for ($i=0; $i<10; $i++) {
eval($message);
echo $i."\n";
}
+?>
--EXPECT--
hey
0
diff --git a/tests/lang/019.phpt b/tests/lang/019.phpt
index 313da0cbd8..79945a2131 100644
--- a/tests/lang/019.phpt
+++ b/tests/lang/019.phpt
@@ -13,6 +13,7 @@ while ($i<10) {
}
eval('-');
+?>
--EXPECTF--
hey, this is a regular echo'd eval()
hey, this is a function inside an eval()!
diff --git a/tests/lang/033.phpt b/tests/lang/033.phpt
index 4bba5e8783..e6254d687b 100644
--- a/tests/lang/033.phpt
+++ b/tests/lang/033.phpt
@@ -37,7 +37,6 @@ switch ($a):
break;
endswitch;
?>
-
--EXPECT--
If: 11
While: 12346789
diff --git a/tests/lang/bug24054.phpt b/tests/lang/bug24054.phpt
index 267057f165..aa098fc524 100644
--- a/tests/lang/bug24054.phpt
+++ b/tests/lang/bug24054.phpt
@@ -18,6 +18,7 @@ $i === $j
TESTS;
include(__DIR__ . '/../quicktester.inc');
+?>
--EXPECT--
1,1,0,0
OK
diff --git a/tests/lang/bug29944.phpt b/tests/lang/bug29944.phpt
index d0f2dd2943..211c950c6e 100644
--- a/tests/lang/bug29944.phpt
+++ b/tests/lang/bug29944.phpt
@@ -13,6 +13,5 @@ switch ($a) {
echo foo($b);
}
?>
-
--EXPECT--
1
diff --git a/tests/lang/bug35382.phpt b/tests/lang/bug35382.phpt
index c2295c3440..4d2a630680 100644
--- a/tests/lang/bug35382.phpt
+++ b/tests/lang/bug35382.phpt
@@ -5,5 +5,6 @@ Bug #35382 (Comment in end of file produces fatal error)
eval("echo 'Hello'; // comment");
echo " World";
//last line comment
+?>
--EXPECT--
Hello World
diff --git a/tests/lang/bug43958.phpt b/tests/lang/bug43958.phpt
index 10a083a3f2..7f0c1b7487 100644
--- a/tests/lang/bug43958.phpt
+++ b/tests/lang/bug43958.phpt
@@ -10,6 +10,7 @@ class MyClass
}
MyClass::loadCode('file-which-does-not-exist-on-purpose.php');
+?>
--EXPECTF--
Warning: include(file-which-does-not-exist-on-purpose.php): Failed to open stream: No such file or directory in %sbug43958.php on line 5
diff --git a/tests/lang/foreach_with_references_001.phpt b/tests/lang/foreach_with_references_001.phpt
index 0a7df06502..a9a4ee8aa5 100644
--- a/tests/lang/foreach_with_references_001.phpt
+++ b/tests/lang/foreach_with_references_001.phpt
@@ -16,6 +16,7 @@ foreach($arr as $key => &$val) {
}
print_r($arr);
+?>
--EXPECT--
Array
(
diff --git a/tests/lang/invalid_octal.phpt b/tests/lang/invalid_octal.phpt
index 213b521e88..4e14d09d7b 100644
--- a/tests/lang/invalid_octal.phpt
+++ b/tests/lang/invalid_octal.phpt
@@ -4,5 +4,6 @@ Invalid octal
<?php
$x = 08;
+?>
--EXPECTF--
Parse error: Invalid numeric literal in %s on line 3
diff --git a/tests/lang/operators/nan-comparison-false.phpt b/tests/lang/operators/nan-comparison-false.phpt
index 2c44405670..1bb1f7b23d 100644
--- a/tests/lang/operators/nan-comparison-false.phpt
+++ b/tests/lang/operators/nan-comparison-false.phpt
@@ -15,6 +15,7 @@ var_dump(0 < $nan);
var_dump(0 <= $nan);
var_dump(0 > $nan);
var_dump(0 >= $nan);
+?>
--EXPECT--
** CONST
bool(false)
diff --git a/tests/lang/operators/operator_identical_recusion-01.phpt b/tests/lang/operators/operator_identical_recusion-01.phpt
index 70a7605bae..4828c2a383 100644
--- a/tests/lang/operators/operator_identical_recusion-01.phpt
+++ b/tests/lang/operators/operator_identical_recusion-01.phpt
@@ -6,5 +6,6 @@ $n = 0;
$a = [[$n]];
$b = [&$a];
var_dump($a === $b);
+?>
--EXPECT--
bool(false)
diff --git a/tests/lang/returnByReference.009.phpt b/tests/lang/returnByReference.009.phpt
index 194f78bd84..3dc0aaa106 100644
--- a/tests/lang/returnByReference.009.phpt
+++ b/tests/lang/returnByReference.009.phpt
@@ -28,6 +28,7 @@ var_dump (testReturnVarByRef());
echo "\n---> 2. Return a value by reference -> Warning:\n";
var_dump (testReturnValByRef());
+?>
--EXPECTF--
---> 1. Return a variable by reference -> No warning:
int(1)
diff --git a/tests/lang/string/unicode_escape.phpt b/tests/lang/string/unicode_escape.phpt
index 1092cee533..e6e63ea0d8 100644
--- a/tests/lang/string/unicode_escape.phpt
+++ b/tests/lang/string/unicode_escape.phpt
@@ -9,6 +9,7 @@ var_dump("\u{ff}"); // case-insensitive
var_dump("\u{2603}"); // Unicode snowman
var_dump("\u{1F602}"); // FACE WITH TEARS OF JOY emoji
var_dump("\u{0000001F602}"); // Leading zeroes permitted
+?>
--EXPECT--
string(1) "a"
string(2) "ΓΏ"
diff --git a/tests/lang/string/unicode_escape_empty.phpt b/tests/lang/string/unicode_escape_empty.phpt
index 0d975ef86a..f50330f679 100644
--- a/tests/lang/string/unicode_escape_empty.phpt
+++ b/tests/lang/string/unicode_escape_empty.phpt
@@ -4,5 +4,6 @@ Invalid Unicode escape sequence: Empty
<?php
var_dump("\u{}");
+?>
--EXPECTF--
Parse error: Invalid UTF-8 codepoint escape sequence in %s on line %d
diff --git a/tests/lang/string/unicode_escape_incomplete.phpt b/tests/lang/string/unicode_escape_incomplete.phpt
index 169e6a278c..5746f86e69 100644
--- a/tests/lang/string/unicode_escape_incomplete.phpt
+++ b/tests/lang/string/unicode_escape_incomplete.phpt
@@ -4,5 +4,6 @@ Invalid Unicode escape sequence: Incomplete
<?php
var_dump("\u{blah");
+?>
--EXPECTF--
Parse error: Invalid UTF-8 codepoint escape sequence in %s on line %d
diff --git a/tests/lang/string/unicode_escape_large_codepoint.phpt b/tests/lang/string/unicode_escape_large_codepoint.phpt
index 249e6e152a..9f13186e29 100644
--- a/tests/lang/string/unicode_escape_large_codepoint.phpt
+++ b/tests/lang/string/unicode_escape_large_codepoint.phpt
@@ -4,5 +4,6 @@ Invalid Unicode escape sequence: Large codepoint
<?php
var_dump("\u{110000}"); // U+10FFFF + 1
+?>
--EXPECTF--
Parse error: Invalid UTF-8 codepoint escape sequence: Codepoint too large in %s on line %d
diff --git a/tests/lang/string/unicode_escape_legacy.phpt b/tests/lang/string/unicode_escape_legacy.phpt
index c5cac68669..6f7c2bf708 100644
--- a/tests/lang/string/unicode_escape_legacy.phpt
+++ b/tests/lang/string/unicode_escape_legacy.phpt
@@ -7,6 +7,7 @@ Tolerated Unicode escape sequences: Legacy compatibility
var_dump("\u");
var_dump("\u202e");
var_dump("\ufoobar");
+?>
--EXPECT--
string(2) "\u"
string(6) "\u202e"
diff --git a/tests/lang/string/unicode_escape_sign.phpt b/tests/lang/string/unicode_escape_sign.phpt
index 4f3ef7c72b..07fe0d2e20 100644
--- a/tests/lang/string/unicode_escape_sign.phpt
+++ b/tests/lang/string/unicode_escape_sign.phpt
@@ -4,5 +4,6 @@ Invalid Unicode escape sequence: Positive sign
<?php
var_dump("\u{+1F602}");
+?>
--EXPECTF--
Parse error: Invalid UTF-8 codepoint escape sequence in %s on line %d
diff --git a/tests/lang/string/unicode_escape_sign2.phpt b/tests/lang/string/unicode_escape_sign2.phpt
index daf34b3ab6..53544dedf0 100644
--- a/tests/lang/string/unicode_escape_sign2.phpt
+++ b/tests/lang/string/unicode_escape_sign2.phpt
@@ -4,5 +4,6 @@ Invalid Unicode escape sequence: Negative sign
<?php
var_dump("\u{-1F602}");
+?>
--EXPECTF--
Parse error: Invalid UTF-8 codepoint escape sequence in %s on line %d
diff --git a/tests/lang/string/unicode_escape_surrogates.phpt b/tests/lang/string/unicode_escape_surrogates.phpt
index 09e525ad12..8ca46c8f98 100644
--- a/tests/lang/string/unicode_escape_surrogates.phpt
+++ b/tests/lang/string/unicode_escape_surrogates.phpt
@@ -9,6 +9,7 @@ Valid Unicode escape sequences: Surrogate halves
var_dump(bin2hex("\u{D801}"));
var_dump(bin2hex("\u{DC00}"));
var_dump(bin2hex("\u{D801}\u{DC00}")); // CESU-8 encoding of U+10400
+?>
--EXPECT--
string(6) "eda081"
string(6) "edb080"
diff --git a/tests/lang/string/unicode_escape_whitespace.phpt b/tests/lang/string/unicode_escape_whitespace.phpt
index 11fa690210..61235042d0 100644
--- a/tests/lang/string/unicode_escape_whitespace.phpt
+++ b/tests/lang/string/unicode_escape_whitespace.phpt
@@ -4,5 +4,6 @@ Invalid Unicode escape sequence: Whitespace
<?php
var_dump("\u{1F602 }");
+?>
--EXPECTF--
Parse error: Invalid UTF-8 codepoint escape sequence in %s on line %d