summaryrefslogtreecommitdiff
path: root/ext/intl
diff options
context:
space:
mode:
authorMáté Kocsis <kocsismate@woohoolabs.com>2020-08-09 11:06:57 +0200
committerMáté Kocsis <kocsismate@woohoolabs.com>2020-08-09 22:03:36 +0200
commit7aacc705d03887c64a90489e367f4c40b46aa3c2 (patch)
treeec7388f82b37e8611c7513aa95678d7feae82329 /ext/intl
parent05478e985eb50c473054b4f1bf174f48ead78784 (diff)
downloadphp-git-7aacc705d03887c64a90489e367f4c40b46aa3c2.tar.gz
Add many missing closing PHP tags to tests
Closes GH-5958
Diffstat (limited to 'ext/intl')
-rw-r--r--ext/intl/tests/breakiter___construct.phpt1
-rw-r--r--ext/intl/tests/breakiter___construct_error.phpt1
-rw-r--r--ext/intl/tests/breakiter_clone_basic.phpt1
-rw-r--r--ext/intl/tests/breakiter_factories_basic.phpt1
-rw-r--r--ext/intl/tests/breakiter_first_basic.phpt1
-rw-r--r--ext/intl/tests/breakiter_getText_basic.phpt1
-rw-r--r--ext/intl/tests/breakiter_last_basic.phpt1
-rw-r--r--ext/intl/tests/breakiter_setText_basic.phpt1
-rw-r--r--ext/intl/tests/bug55562.phpt1
-rw-r--r--ext/intl/tests/bug60192-compare.phpt1
-rw-r--r--ext/intl/tests/bug60192-getlocale.phpt1
-rw-r--r--ext/intl/tests/bug60192-getsortkey.phpt1
-rw-r--r--ext/intl/tests/bug60192-sort.phpt1
-rw-r--r--ext/intl/tests/bug60192-sortwithsortkeys.phpt1
-rw-r--r--ext/intl/tests/bug61487.phpt1
-rw-r--r--ext/intl/tests/bug62017.phpt1
-rw-r--r--ext/intl/tests/bug62070.phpt1
-rw-r--r--ext/intl/tests/bug62070_2.phpt1
-rw-r--r--ext/intl/tests/bug62070_3.phpt1
-rw-r--r--ext/intl/tests/bug62081.phpt1
-rw-r--r--ext/intl/tests/bug62082.phpt1
-rw-r--r--ext/intl/tests/bug62083.phpt1
-rw-r--r--ext/intl/tests/bug62915-2.phpt1
-rw-r--r--ext/intl/tests/bug62915.phpt1
-rw-r--r--ext/intl/tests/bug68447.phpt1
-rw-r--r--ext/intl/tests/bug72241.phpt1
-rw-r--r--ext/intl/tests/calendar_add_error.phpt1
-rw-r--r--ext/intl/tests/calendar_before_after_error.phpt1
-rw-r--r--ext/intl/tests/calendar_clear_error.phpt1
-rw-r--r--ext/intl/tests/calendar_const_field_field_count.phpt1
-rw-r--r--ext/intl/tests/calendar_createInstance_error.phpt1
-rw-r--r--ext/intl/tests/calendar_equals_error.phpt1
-rw-r--r--ext/intl/tests/calendar_fieldDifference_error.phpt1
-rw-r--r--ext/intl/tests/calendar_fromDateTime_basic.phpt1
-rw-r--r--ext/intl/tests/calendar_fromDateTime_error.phpt1
-rw-r--r--ext/intl/tests/calendar_getDayOfWeekType_error.phpt2
-rw-r--r--ext/intl/tests/calendar_getErrorCode_error.phpt1
-rw-r--r--ext/intl/tests/calendar_getErrorMessage_error.phpt1
-rw-r--r--ext/intl/tests/calendar_getFirstDayOfWeek_error.phpt1
-rw-r--r--ext/intl/tests/calendar_getLocale_error.phpt1
-rw-r--r--ext/intl/tests/calendar_getMinimalDaysInFirstWeek_error.phpt1
-rw-r--r--ext/intl/tests/calendar_getSkipped_RepeatedWallTimeOption_error.phpt1
-rw-r--r--ext/intl/tests/calendar_getTimeZone_error.phpt1
-rw-r--r--ext/intl/tests/calendar_getTime_error.phpt1
-rw-r--r--ext/intl/tests/calendar_getType_error.phpt1
-rw-r--r--ext/intl/tests/calendar_getWeekendTransition_error.phpt1
-rw-r--r--ext/intl/tests/calendar_get_Least_Greatest_Minimum_Maximum_error.phpt1
-rw-r--r--ext/intl/tests/calendar_get_getActualMaximum_Minumum_error2.phpt1
-rw-r--r--ext/intl/tests/calendar_inDaylightTime_error.phpt1
-rw-r--r--ext/intl/tests/calendar_isEquivalentTo_error.phpt1
-rw-r--r--ext/intl/tests/calendar_isLenient_error.phpt1
-rw-r--r--ext/intl/tests/calendar_isSet_error.phpt2
-rw-r--r--ext/intl/tests/calendar_isWeekend_error.phpt1
-rw-r--r--ext/intl/tests/calendar_roll_error.phpt1
-rw-r--r--ext/intl/tests/calendar_setFirstDayOfWeek_error.phpt1
-rw-r--r--ext/intl/tests/calendar_setLenient_error.phpt1
-rw-r--r--ext/intl/tests/calendar_setMinimalDaysInFirstWeek_error.phpt1
-rw-r--r--ext/intl/tests/calendar_setSkipped_RepeatedWallTimeOption_error.phpt1
-rw-r--r--ext/intl/tests/calendar_setTimeZone_error.phpt1
-rw-r--r--ext/intl/tests/calendar_setTimeZone_error2.phpt1
-rw-r--r--ext/intl/tests/calendar_setTimeZone_variation2.phpt1
-rw-r--r--ext/intl/tests/calendar_setTime_error.phpt1
-rw-r--r--ext/intl/tests/calendar_set_error.phpt1
-rw-r--r--ext/intl/tests/calendar_toDateTime_error.phpt1
-rw-r--r--ext/intl/tests/dateformat_clone_bad_obj.phpt1
-rw-r--r--ext/intl/tests/dateformat_format_relative.phpt1
-rw-r--r--ext/intl/tests/dateformat_invalid_timezone.phpt1
-rw-r--r--ext/intl/tests/dateformat_timezone_arg_variations.phpt1
-rw-r--r--ext/intl/tests/dateformat_timezone_arg_variations2.phpt1
-rw-r--r--ext/intl/tests/dateformat_timezone_arg_variations3.phpt1
-rw-r--r--ext/intl/tests/dateformat_timezone_arg_variations4.phpt1
-rw-r--r--ext/intl/tests/formatter_clone_bad_obj.phpt1
-rw-r--r--ext/intl/tests/gregoriancalendar___construct_error.phpt1
-rw-r--r--ext/intl/tests/idn_uts46_basic.phpt1
-rw-r--r--ext/intl/tests/ini_use_exceptions_basic.phpt1
-rw-r--r--ext/intl/tests/locale/bug74993.phpt1
-rw-r--r--ext/intl/tests/msgfmt_clone_bad_obj.phpt1
-rw-r--r--ext/intl/tests/msgfmt_format_error1.phpt1
-rw-r--r--ext/intl/tests/msgfmt_format_error2.phpt1
-rw-r--r--ext/intl/tests/msgfmt_format_error3.phpt1
-rw-r--r--ext/intl/tests/msgfmt_format_error5.phpt1
-rw-r--r--ext/intl/tests/msgfmt_format_error6.phpt1
-rw-r--r--ext/intl/tests/timezone_IDforWindowsID_basic.phpt1
-rw-r--r--ext/intl/tests/timezone_IDforWindowsID_basic2.phpt1
-rw-r--r--ext/intl/tests/timezone_countEquivalentIDs_error.phpt1
-rw-r--r--ext/intl/tests/timezone_createTimeZoneIDEnumeration_error.phpt1
-rw-r--r--ext/intl/tests/timezone_fromDateTimeZone_basic.phpt1
-rw-r--r--ext/intl/tests/timezone_getDisplayName_error.phpt1
-rw-r--r--ext/intl/tests/timezone_hasSameRules_error.phpt1
-rw-r--r--ext/intl/tests/timezone_toDateTimeZone_basic.phpt1
-rw-r--r--ext/intl/tests/timezone_toDateTimeZone_error.phpt1
-rw-r--r--ext/intl/tests/timezone_windowsID_basic.phpt1
-rw-r--r--ext/intl/tests/timezone_windowsID_basic2.phpt1
-rw-r--r--ext/intl/tests/transliterator_clone.phpt1
-rw-r--r--ext/intl/tests/transliterator_create_basic.phpt1
-rw-r--r--ext/intl/tests/transliterator_create_error.phpt1
-rw-r--r--ext/intl/tests/transliterator_create_from_rule_basic.phpt1
-rw-r--r--ext/intl/tests/transliterator_create_from_rule_error.phpt1
-rw-r--r--ext/intl/tests/transliterator_create_inverse_basic.phpt1
-rw-r--r--ext/intl/tests/transliterator_get_error_code_basic.phpt1
-rw-r--r--ext/intl/tests/transliterator_get_error_message_basic.phpt1
-rw-r--r--ext/intl/tests/transliterator_list_ids_basic.phpt1
-rw-r--r--ext/intl/tests/transliterator_property_id.phpt1
-rw-r--r--ext/intl/tests/transliterator_transliterate_basic.phpt1
-rw-r--r--ext/intl/tests/transliterator_transliterate_error.phpt1
-rw-r--r--ext/intl/tests/transliterator_transliterate_variant1.phpt1
-rw-r--r--ext/intl/tests/uconverter___construct_error.phpt1
-rw-r--r--ext/intl/tests/uconverter_bug66873.phpt1
-rw-r--r--ext/intl/tests/uconverter_enum.phpt1
-rw-r--r--ext/intl/tests/uconverter_func_basic.phpt1
-rw-r--r--ext/intl/tests/uconverter_func_subst.phpt1
-rw-r--r--ext/intl/tests/uconverter_getDestinationEncoding.phpt1
-rw-r--r--ext/intl/tests/uconverter_getSourceEncoding.phpt1
-rw-r--r--ext/intl/tests/uconverter_oop_algo.phpt1
-rw-r--r--ext/intl/tests/uconverter_oop_basic.phpt1
-rw-r--r--ext/intl/tests/uconverter_oop_callback.phpt1
-rw-r--r--ext/intl/tests/uconverter_oop_callback2.phpt1
-rw-r--r--ext/intl/tests/uconverter_oop_callback_return.phpt1
-rw-r--r--ext/intl/tests/uconverter_oop_subst.phpt1
-rw-r--r--ext/intl/tests/uconverter_setSourceEncoding.phpt1
-rw-r--r--ext/intl/uchar/tests/basic-functionality.phpt1
121 files changed, 121 insertions, 2 deletions
diff --git a/ext/intl/tests/breakiter___construct.phpt b/ext/intl/tests/breakiter___construct.phpt
index df16ceafd0..16ca32bf18 100644
--- a/ext/intl/tests/breakiter___construct.phpt
+++ b/ext/intl/tests/breakiter___construct.phpt
@@ -9,6 +9,7 @@ if (!extension_loaded('intl'))
ini_set("intl.error_level", E_WARNING);
new IntlBreakIterator();
+?>
--EXPECTF--
Fatal error: Uncaught Error: Call to private IntlBreakIterator::__construct() from global scope in %s:%d
Stack trace:
diff --git a/ext/intl/tests/breakiter___construct_error.phpt b/ext/intl/tests/breakiter___construct_error.phpt
index c8cbdcc6de..a18d8d5a5d 100644
--- a/ext/intl/tests/breakiter___construct_error.phpt
+++ b/ext/intl/tests/breakiter___construct_error.phpt
@@ -36,6 +36,7 @@ try {
} catch (IntlException $e) {
print_exception($e);
}
+?>
--EXPECTF--
Exception: IntlRuleBasedBreakIterator::__construct(): rbbi_create_instance: unable to create RuleBasedBreakIterator from rules (parse error on line 1, offset 31) in %s on line %d
diff --git a/ext/intl/tests/breakiter_clone_basic.phpt b/ext/intl/tests/breakiter_clone_basic.phpt
index e8b7d34127..4e997a8418 100644
--- a/ext/intl/tests/breakiter_clone_basic.phpt
+++ b/ext/intl/tests/breakiter_clone_basic.phpt
@@ -17,6 +17,7 @@ $bi->setText('foobar');
$bi_clone = clone $bi;
var_dump(get_class($bi), get_class($bi_clone));
var_dump($bi == $bi_clone);
+?>
--EXPECT--
string(26) "IntlRuleBasedBreakIterator"
string(26) "IntlRuleBasedBreakIterator"
diff --git a/ext/intl/tests/breakiter_factories_basic.phpt b/ext/intl/tests/breakiter_factories_basic.phpt
index ac7b17505d..0e2c65fb44 100644
--- a/ext/intl/tests/breakiter_factories_basic.phpt
+++ b/ext/intl/tests/breakiter_factories_basic.phpt
@@ -22,6 +22,7 @@ foreach ($m as $method) {
var_dump($o1 == $o2 && $o2 == $o3);
echo "\n";
}
+?>
--EXPECT--
===== createWordInstance =====
bool(true)
diff --git a/ext/intl/tests/breakiter_first_basic.phpt b/ext/intl/tests/breakiter_first_basic.phpt
index 364d5f2fa6..24c015f3fb 100644
--- a/ext/intl/tests/breakiter_first_basic.phpt
+++ b/ext/intl/tests/breakiter_first_basic.phpt
@@ -15,6 +15,7 @@ var_dump($bi->current());
var_dump($bi->next());
var_dump($bi->first());
var_dump($bi->current());
+?>
--EXPECT--
int(0)
int(3)
diff --git a/ext/intl/tests/breakiter_getText_basic.phpt b/ext/intl/tests/breakiter_getText_basic.phpt
index 37cd161e02..3efc1ca89f 100644
--- a/ext/intl/tests/breakiter_getText_basic.phpt
+++ b/ext/intl/tests/breakiter_getText_basic.phpt
@@ -12,6 +12,7 @@ $bi = IntlBreakIterator::createWordInstance('pt');
var_dump($bi->getText());
$bi->setText('foo bar');
var_dump($bi->getText());
+?>
--EXPECT--
NULL
string(7) "foo bar"
diff --git a/ext/intl/tests/breakiter_last_basic.phpt b/ext/intl/tests/breakiter_last_basic.phpt
index 48693f1ed0..014c578725 100644
--- a/ext/intl/tests/breakiter_last_basic.phpt
+++ b/ext/intl/tests/breakiter_last_basic.phpt
@@ -14,6 +14,7 @@ $bi->setText('foo bar trans');
var_dump($bi->current());
var_dump($bi->last());
var_dump($bi->current());
+?>
--EXPECT--
int(0)
int(13)
diff --git a/ext/intl/tests/breakiter_setText_basic.phpt b/ext/intl/tests/breakiter_setText_basic.phpt
index a5e4f86b65..0526fe0e51 100644
--- a/ext/intl/tests/breakiter_setText_basic.phpt
+++ b/ext/intl/tests/breakiter_setText_basic.phpt
@@ -24,6 +24,7 @@ var_dump($bi->getText());
var_dump($bi->next());
var_dump($bi->setText('foo bar'));
var_dump($bi->current());
+?>
--EXPECT--
bool(true)
string(7) "foo bar"
diff --git a/ext/intl/tests/bug55562.phpt b/ext/intl/tests/bug55562.phpt
index dd053c0ee9..80f3ea6754 100644
--- a/ext/intl/tests/bug55562.phpt
+++ b/ext/intl/tests/bug55562.phpt
@@ -8,6 +8,7 @@ var_dump(
grapheme_substr('FOK', 1, 20), // expected: OK
grapheme_substr('한국어', 1, 20) //expected: 국어
);
+?>
--EXPECT--
string(2) "OK"
string(6) "국어"
diff --git a/ext/intl/tests/bug60192-compare.phpt b/ext/intl/tests/bug60192-compare.phpt
index bd5faa11ed..4830e73d9c 100644
--- a/ext/intl/tests/bug60192-compare.phpt
+++ b/ext/intl/tests/bug60192-compare.phpt
@@ -14,6 +14,7 @@ class Collator2 extends Collator{
$c = new Collator2();
$a = $c->compare('h', 'H');
+?>
--EXPECTF--
Fatal error: Uncaught Error: Object not initialized in %s:%d
Stack trace:
diff --git a/ext/intl/tests/bug60192-getlocale.phpt b/ext/intl/tests/bug60192-getlocale.phpt
index 526632192e..2fea77cbd5 100644
--- a/ext/intl/tests/bug60192-getlocale.phpt
+++ b/ext/intl/tests/bug60192-getlocale.phpt
@@ -15,6 +15,7 @@ class Collator2 extends Collator{
$c = new Collator2();
$c->getLocale(Locale::ACTUAL_LOCALE);
+?>
--EXPECTF--
Fatal error: Uncaught Error: Object not initialized in %s:%d
Stack trace:
diff --git a/ext/intl/tests/bug60192-getsortkey.phpt b/ext/intl/tests/bug60192-getsortkey.phpt
index 96df981cf5..e00858bbd1 100644
--- a/ext/intl/tests/bug60192-getsortkey.phpt
+++ b/ext/intl/tests/bug60192-getsortkey.phpt
@@ -15,6 +15,7 @@ class Collator2 extends Collator{
$c = new Collator2();
$c->getSortKey('h');
+?>
--EXPECTF--
Fatal error: Uncaught Error: Object not initialized in %s:%d
Stack trace:
diff --git a/ext/intl/tests/bug60192-sort.phpt b/ext/intl/tests/bug60192-sort.phpt
index 27899fdd4f..e0d20f7c3c 100644
--- a/ext/intl/tests/bug60192-sort.phpt
+++ b/ext/intl/tests/bug60192-sort.phpt
@@ -16,6 +16,7 @@ class Collator2 extends Collator{
$c = new Collator2();
$a = array('a', 'b');
$c->sort($a);
+?>
--EXPECTF--
Fatal error: Uncaught Error: Object not initialized in %s:%d
Stack trace:
diff --git a/ext/intl/tests/bug60192-sortwithsortkeys.phpt b/ext/intl/tests/bug60192-sortwithsortkeys.phpt
index 7f22c003c3..f324d052b0 100644
--- a/ext/intl/tests/bug60192-sortwithsortkeys.phpt
+++ b/ext/intl/tests/bug60192-sortwithsortkeys.phpt
@@ -16,6 +16,7 @@ class Collator2 extends Collator{
$c = new Collator2();
$a = array('a', 'b');
$c->sortWithSortKeys($a);
+?>
--EXPECTF--
Fatal error: Uncaught Error: Object not initialized in %s:%d
Stack trace:
diff --git a/ext/intl/tests/bug61487.phpt b/ext/intl/tests/bug61487.phpt
index b303e00710..677787bda5 100644
--- a/ext/intl/tests/bug61487.phpt
+++ b/ext/intl/tests/bug61487.phpt
@@ -8,6 +8,7 @@ if (PHP_INT_SIZE != 8) die('skip 64-bit only');
<?php
var_dump(grapheme_stripos(1,1,2147483648));
var_dump(grapheme_strpos(1,1,2147483648));
+?>
--EXPECT--
bool(false)
bool(false)
diff --git a/ext/intl/tests/bug62017.phpt b/ext/intl/tests/bug62017.phpt
index f2fa15a81d..28e0bb570a 100644
--- a/ext/intl/tests/bug62017.phpt
+++ b/ext/intl/tests/bug62017.phpt
@@ -17,6 +17,7 @@ try {
} catch (IntlException $e) {
echo PHP_EOL."Exception: " . $e->getMessage() . " in " . $e->getFile() . " on line " . $e->getLine() . PHP_EOL;
}
+?>
--EXPECTF--
Warning: datefmt_create(): datefmt_create: Time zone identifier given is not a valid UTF-8 string in %s on line %d
NULL
diff --git a/ext/intl/tests/bug62070.phpt b/ext/intl/tests/bug62070.phpt
index 612e851a75..9f6807590a 100644
--- a/ext/intl/tests/bug62070.phpt
+++ b/ext/intl/tests/bug62070.phpt
@@ -11,5 +11,6 @@ $coll = collator_create('en_US');
$res = collator_get_sort_key($coll, $s1);
echo urlencode($res);
+?>
--EXPECT--
5%2F%3D%3DC%01%09%01%8F%08
diff --git a/ext/intl/tests/bug62070_2.phpt b/ext/intl/tests/bug62070_2.phpt
index c632b569cc..d567df6e72 100644
--- a/ext/intl/tests/bug62070_2.phpt
+++ b/ext/intl/tests/bug62070_2.phpt
@@ -12,5 +12,6 @@ $coll = collator_create('en_US');
$res = collator_get_sort_key($coll, $s1);
echo urlencode($res);
+?>
--EXPECT--
71%3F%3FE%01%09%01%DC%08
diff --git a/ext/intl/tests/bug62070_3.phpt b/ext/intl/tests/bug62070_3.phpt
index 5510798b6b..6f750e53c3 100644
--- a/ext/intl/tests/bug62070_3.phpt
+++ b/ext/intl/tests/bug62070_3.phpt
@@ -11,5 +11,6 @@ $coll = collator_create('en_US');
$res = collator_get_sort_key($coll, $s1);
echo urlencode($res);
+?>
--EXPECT--
82%40%40F%01%09%01%DC%08
diff --git a/ext/intl/tests/bug62081.phpt b/ext/intl/tests/bug62081.phpt
index b7adf7f873..a9889d26d9 100644
--- a/ext/intl/tests/bug62081.phpt
+++ b/ext/intl/tests/bug62081.phpt
@@ -11,6 +11,7 @@ if (!extension_loaded('intl'))
ini_set('intl.error_level', E_WARNING);
$x = new IntlDateFormatter('en', 1, 1);
var_dump($x->__construct('en', 1, 1));
+?>
--EXPECTF--
Fatal error: Uncaught IntlException: IntlDateFormatter::__construct(): datefmt_create: cannot call constructor twice in %sbug62081.php:4
Stack trace:
diff --git a/ext/intl/tests/bug62082.phpt b/ext/intl/tests/bug62082.phpt
index 279462e789..ab0eca20b9 100644
--- a/ext/intl/tests/bug62082.phpt
+++ b/ext/intl/tests/bug62082.phpt
@@ -9,6 +9,7 @@ if (!extension_loaded('intl'))
var_dump(locale_get_display_name(str_repeat("a", 300), null));
var_dump(locale_get_display_name(str_repeat("a", 512), null));
var_dump(locale_get_display_name(str_repeat("a", 600), null));
+?>
--EXPECT--
bool(false)
bool(false)
diff --git a/ext/intl/tests/bug62083.phpt b/ext/intl/tests/bug62083.phpt
index 4baa5c5e9a..944a717a36 100644
--- a/ext/intl/tests/bug62083.phpt
+++ b/ext/intl/tests/bug62083.phpt
@@ -8,5 +8,6 @@ if (!extension_loaded('intl'))
<?php
$arr1 = array();
var_dump(grapheme_extract(-1, -1, -1,-1, $arr1));
+?>
--EXPECT--
bool(false)
diff --git a/ext/intl/tests/bug62915-2.phpt b/ext/intl/tests/bug62915-2.phpt
index a10b476ab4..411023dc41 100644
--- a/ext/intl/tests/bug62915-2.phpt
+++ b/ext/intl/tests/bug62915-2.phpt
@@ -28,6 +28,7 @@ foreach (range('A', 'D') as $subclass) {
$clone = clone $obj;
var_dump(get_class($clone));
}
+?>
--EXPECT--
string(1) "A"
string(1) "B"
diff --git a/ext/intl/tests/bug62915.phpt b/ext/intl/tests/bug62915.phpt
index 45d2dea5e9..09d757f63a 100644
--- a/ext/intl/tests/bug62915.phpt
+++ b/ext/intl/tests/bug62915.phpt
@@ -20,5 +20,6 @@ try {
} catch (Exception $e) {
var_dump($e->getMessage());
}
+?>
--EXPECT--
string(39) "Cannot clone unconstructed IntlTimeZone"
diff --git a/ext/intl/tests/bug68447.phpt b/ext/intl/tests/bug68447.phpt
index f320276df2..870913c9f3 100644
--- a/ext/intl/tests/bug68447.phpt
+++ b/ext/intl/tests/bug68447.phpt
@@ -16,6 +16,7 @@ echo grapheme_extract($haiyore, 12, GRAPHEME_EXTR_MAXBYTES) . "\n";
echo grapheme_extract($haiyore, 1, GRAPHEME_EXTR_MAXCHARS) . "\n";
echo grapheme_extract($haiyore, 2, GRAPHEME_EXTR_MAXCHARS) . "\n";
echo grapheme_extract($haiyore, 3, GRAPHEME_EXTR_MAXCHARS) . "\n";
+?>
--EXPECT--
葛󠄁
這󠄀
diff --git a/ext/intl/tests/bug72241.phpt b/ext/intl/tests/bug72241.phpt
index 7ac5a5b503..05336969e2 100644
--- a/ext/intl/tests/bug72241.phpt
+++ b/ext/intl/tests/bug72241.phpt
@@ -8,5 +8,6 @@ $var1=str_repeat("A", 1000);
$out = locale_get_primary_language($var1);
echo strlen($out) . PHP_EOL;
echo unpack('H*', $out)[1] . PHP_EOL;
+?>
--EXPECT--
0
diff --git a/ext/intl/tests/calendar_add_error.phpt b/ext/intl/tests/calendar_add_error.phpt
index 59b9abc053..2fdf7e0c9c 100644
--- a/ext/intl/tests/calendar_add_error.phpt
+++ b/ext/intl/tests/calendar_add_error.phpt
@@ -11,6 +11,7 @@ if (!extension_loaded('intl'))
ini_set("intl.error_level", E_WARNING);
var_dump(intlcal_add(1, 2, 3));
+?>
--EXPECTF--
Fatal error: Uncaught TypeError: intlcal_add(): Argument #1 ($calendar) must be of type IntlCalendar, int given in %s:%d
Stack trace:
diff --git a/ext/intl/tests/calendar_before_after_error.phpt b/ext/intl/tests/calendar_before_after_error.phpt
index 8fd6db2a1b..be1f01b927 100644
--- a/ext/intl/tests/calendar_before_after_error.phpt
+++ b/ext/intl/tests/calendar_before_after_error.phpt
@@ -60,6 +60,7 @@ try {
} catch (Error $ex) {
echo "error: " . $ex->getCode() . ", " . $ex->getMessage() . "\n\n";
}
+?>
--EXPECT--
error: 0, IntlCalendar::after() expects exactly 1 parameter, 0 given
diff --git a/ext/intl/tests/calendar_clear_error.phpt b/ext/intl/tests/calendar_clear_error.phpt
index 12e5098ec5..1e61f17315 100644
--- a/ext/intl/tests/calendar_clear_error.phpt
+++ b/ext/intl/tests/calendar_clear_error.phpt
@@ -27,6 +27,7 @@ try {
} catch (\TypeError $e) {
echo $e->getMessage() . \PHP_EOL;
}
+?>
--EXPECT--
IntlCalendar::clear(): Argument #1 ($field) must be a valid field
intlcal_clear(): Argument #2 ($field) must be a valid field
diff --git a/ext/intl/tests/calendar_const_field_field_count.phpt b/ext/intl/tests/calendar_const_field_field_count.phpt
index bae438fbbc..db7d57adde 100644
--- a/ext/intl/tests/calendar_const_field_field_count.phpt
+++ b/ext/intl/tests/calendar_const_field_field_count.phpt
@@ -9,5 +9,6 @@ if (!extension_loaded('intl'))
--FILE--
<?php
var_dump(IntlCalendar::FIELD_FIELD_COUNT);
+?>
--EXPECTF--
int(%d)
diff --git a/ext/intl/tests/calendar_createInstance_error.phpt b/ext/intl/tests/calendar_createInstance_error.phpt
index 516cc9260e..19d817b6be 100644
--- a/ext/intl/tests/calendar_createInstance_error.phpt
+++ b/ext/intl/tests/calendar_createInstance_error.phpt
@@ -13,6 +13,7 @@ function __construct() {}
}
var_dump(intlcal_create_instance(new X, NULL));
+?>
--EXPECTF--
Warning: intlcal_create_instance(): intlcal_create_instance: passed IntlTimeZone is not properly constructed in %s on line %d
NULL
diff --git a/ext/intl/tests/calendar_equals_error.phpt b/ext/intl/tests/calendar_equals_error.phpt
index dbed334962..41a7d17238 100644
--- a/ext/intl/tests/calendar_equals_error.phpt
+++ b/ext/intl/tests/calendar_equals_error.phpt
@@ -44,6 +44,7 @@ try {
} catch (Error $ex) {
echo "error: " . $ex->getCode() . ", " . $ex->getMessage() . "\n\n";
}
+?>
--EXPECT--
error: 0, IntlCalendar::equals() expects exactly 1 parameter, 0 given
diff --git a/ext/intl/tests/calendar_fieldDifference_error.phpt b/ext/intl/tests/calendar_fieldDifference_error.phpt
index bf9ab18c76..a7b83acdd6 100644
--- a/ext/intl/tests/calendar_fieldDifference_error.phpt
+++ b/ext/intl/tests/calendar_fieldDifference_error.phpt
@@ -25,6 +25,7 @@ try {
echo $e->getMessage(), "\n";
}
var_dump(intlcal_field_difference(1, 0, 1));
+?>
--EXPECTF--
IntlCalendar::fieldDifference() expects exactly 2 parameters, 3 given
diff --git a/ext/intl/tests/calendar_fromDateTime_basic.phpt b/ext/intl/tests/calendar_fromDateTime_basic.phpt
index dcbd4e1c61..84010329a6 100644
--- a/ext/intl/tests/calendar_fromDateTime_basic.phpt
+++ b/ext/intl/tests/calendar_fromDateTime_basic.phpt
@@ -35,6 +35,7 @@ var_dump(
strtotime('2012-01-01 00:00:00 +03:40') * 1000.,
$cal->getTimeZone()->getID()
);
+?>
--EXPECTF--
float(1325372400000)
float(1325372400000)
diff --git a/ext/intl/tests/calendar_fromDateTime_error.phpt b/ext/intl/tests/calendar_fromDateTime_error.phpt
index 6fbaeb57f8..c610335bb3 100644
--- a/ext/intl/tests/calendar_fromDateTime_error.phpt
+++ b/ext/intl/tests/calendar_fromDateTime_error.phpt
@@ -26,6 +26,7 @@ var_dump(IntlCalendar::fromDateTime($date));
$date = new DateTime('2012-01-01 00:00:00 WEST');
var_dump(IntlCalendar::fromDateTime($date));
+?>
--EXPECTF--
threw exception, OK
Warning: IntlCalendar::fromDateTime(): intlcal_from_date_time: DateTime object is unconstructed in %s on line %d
diff --git a/ext/intl/tests/calendar_getDayOfWeekType_error.phpt b/ext/intl/tests/calendar_getDayOfWeekType_error.phpt
index 9fee899901..512d29743b 100644
--- a/ext/intl/tests/calendar_getDayOfWeekType_error.phpt
+++ b/ext/intl/tests/calendar_getDayOfWeekType_error.phpt
@@ -21,7 +21,7 @@ try {
} catch (\TypeError $e) {
echo $e->getMessage() . \PHP_EOL;
}
-
+?>
--EXPECT--
IntlCalendar::getDayOfWeekType(): Argument #1 ($dayOfWeek) must be a valid day of the week
intlcal_get_day_of_week_type(): Argument #1 ($calendar) must be of type IntlCalendar, int given
diff --git a/ext/intl/tests/calendar_getErrorCode_error.phpt b/ext/intl/tests/calendar_getErrorCode_error.phpt
index 5bf65b59c5..7c7481ebbf 100644
--- a/ext/intl/tests/calendar_getErrorCode_error.phpt
+++ b/ext/intl/tests/calendar_getErrorCode_error.phpt
@@ -11,6 +11,7 @@ if (!extension_loaded('intl'))
ini_set("intl.error_level", E_WARNING);
var_dump(intlcal_get_error_code(null));
+?>
--EXPECTF--
Fatal error: Uncaught TypeError: intlcal_get_error_code(): Argument #1 ($calendar) must be of type IntlCalendar, null given in %s:%d
Stack trace:
diff --git a/ext/intl/tests/calendar_getErrorMessage_error.phpt b/ext/intl/tests/calendar_getErrorMessage_error.phpt
index 733194fee9..7b94b607b0 100644
--- a/ext/intl/tests/calendar_getErrorMessage_error.phpt
+++ b/ext/intl/tests/calendar_getErrorMessage_error.phpt
@@ -11,6 +11,7 @@ if (!extension_loaded('intl'))
ini_set("intl.error_level", E_WARNING);
var_dump(intlcal_get_error_message(null));
+?>
--EXPECTF--
Fatal error: Uncaught TypeError: intlcal_get_error_message(): Argument #1 ($calendar) must be of type IntlCalendar, null given in %s:%d
Stack trace:
diff --git a/ext/intl/tests/calendar_getFirstDayOfWeek_error.phpt b/ext/intl/tests/calendar_getFirstDayOfWeek_error.phpt
index fa37edd380..353c5cb099 100644
--- a/ext/intl/tests/calendar_getFirstDayOfWeek_error.phpt
+++ b/ext/intl/tests/calendar_getFirstDayOfWeek_error.phpt
@@ -11,6 +11,7 @@ if (!extension_loaded('intl'))
ini_set("intl.error_level", E_WARNING);
var_dump(intlcal_get_first_day_of_week(1));
+?>
--EXPECTF--
Fatal error: Uncaught TypeError: intlcal_get_first_day_of_week(): Argument #1 ($calendar) must be of type IntlCalendar, int given in %s:%d
Stack trace:
diff --git a/ext/intl/tests/calendar_getLocale_error.phpt b/ext/intl/tests/calendar_getLocale_error.phpt
index 90102a53f6..7171b4934b 100644
--- a/ext/intl/tests/calendar_getLocale_error.phpt
+++ b/ext/intl/tests/calendar_getLocale_error.phpt
@@ -11,6 +11,7 @@ if (!extension_loaded('intl'))
ini_set("intl.error_level", E_WARNING);
var_dump(intlcal_get_locale(1));
+?>
--EXPECTF--
Fatal error: Uncaught ArgumentCountError: intlcal_get_locale() expects exactly 2 parameters, 1 given in %s:%d
Stack trace:
diff --git a/ext/intl/tests/calendar_getMinimalDaysInFirstWeek_error.phpt b/ext/intl/tests/calendar_getMinimalDaysInFirstWeek_error.phpt
index 9a84ac9719..c5918dae37 100644
--- a/ext/intl/tests/calendar_getMinimalDaysInFirstWeek_error.phpt
+++ b/ext/intl/tests/calendar_getMinimalDaysInFirstWeek_error.phpt
@@ -11,6 +11,7 @@ if (!extension_loaded('intl'))
ini_set("intl.error_level", E_WARNING);
var_dump(intlcal_get_minimal_days_in_first_week(1));
+?>
--EXPECTF--
Fatal error: Uncaught TypeError: intlcal_get_minimal_days_in_first_week(): Argument #1 ($calendar) must be of type IntlCalendar, int given in %s:%d
Stack trace:
diff --git a/ext/intl/tests/calendar_getSkipped_RepeatedWallTimeOption_error.phpt b/ext/intl/tests/calendar_getSkipped_RepeatedWallTimeOption_error.phpt
index 3c8082d62b..3d604da1b4 100644
--- a/ext/intl/tests/calendar_getSkipped_RepeatedWallTimeOption_error.phpt
+++ b/ext/intl/tests/calendar_getSkipped_RepeatedWallTimeOption_error.phpt
@@ -11,6 +11,7 @@ if (!extension_loaded('intl'))
ini_set("intl.error_level", E_WARNING);
var_dump(intlcal_get_skipped_wall_time_option(1));
+?>
--EXPECTF--
Fatal error: Uncaught TypeError: intlcal_get_skipped_wall_time_option(): Argument #1 ($calendar) must be of type IntlCalendar, int given in %s:%d
Stack trace:
diff --git a/ext/intl/tests/calendar_getTimeZone_error.phpt b/ext/intl/tests/calendar_getTimeZone_error.phpt
index 11bc5631c8..4ccd28243c 100644
--- a/ext/intl/tests/calendar_getTimeZone_error.phpt
+++ b/ext/intl/tests/calendar_getTimeZone_error.phpt
@@ -11,6 +11,7 @@ if (!extension_loaded('intl'))
ini_set("intl.error_level", E_WARNING);
var_dump(intlcal_get_time_zone(1));
+?>
--EXPECTF--
Fatal error: Uncaught TypeError: intlcal_get_time_zone(): Argument #1 ($calendar) must be of type IntlCalendar, int given in %s:%d
Stack trace:
diff --git a/ext/intl/tests/calendar_getTime_error.phpt b/ext/intl/tests/calendar_getTime_error.phpt
index 6018cd7c92..13f5253728 100644
--- a/ext/intl/tests/calendar_getTime_error.phpt
+++ b/ext/intl/tests/calendar_getTime_error.phpt
@@ -11,6 +11,7 @@ if (!extension_loaded('intl'))
ini_set("intl.error_level", E_WARNING);
var_dump(intlcal_get_time(1));
+?>
--EXPECTF--
Fatal error: Uncaught TypeError: intlcal_get_time(): Argument #1 ($calendar) must be of type IntlCalendar, int given in %s:%d
Stack trace:
diff --git a/ext/intl/tests/calendar_getType_error.phpt b/ext/intl/tests/calendar_getType_error.phpt
index 83bf072508..30c2cb90e8 100644
--- a/ext/intl/tests/calendar_getType_error.phpt
+++ b/ext/intl/tests/calendar_getType_error.phpt
@@ -11,6 +11,7 @@ if (!extension_loaded('intl'))
ini_set("intl.error_level", E_WARNING);
var_dump(intlcal_get_type(1));
+?>
--EXPECTF--
Fatal error: Uncaught TypeError: intlcal_get_type(): Argument #1 ($calendar) must be of type IntlCalendar, int given in %s:%d
Stack trace:
diff --git a/ext/intl/tests/calendar_getWeekendTransition_error.phpt b/ext/intl/tests/calendar_getWeekendTransition_error.phpt
index 63a1e7d07b..87bb96d220 100644
--- a/ext/intl/tests/calendar_getWeekendTransition_error.phpt
+++ b/ext/intl/tests/calendar_getWeekendTransition_error.phpt
@@ -24,6 +24,7 @@ try {
echo $e->getMessage() . \PHP_EOL;
}
+?>
--EXPECT--
IntlCalendar::getWeekendTransition(): Argument #1 ($dayOfWeek) must be a valid day of the week
intlcal_get_weekend_transition(): Argument #1 ($calendar) must be of type IntlCalendar, int given
diff --git a/ext/intl/tests/calendar_get_Least_Greatest_Minimum_Maximum_error.phpt b/ext/intl/tests/calendar_get_Least_Greatest_Minimum_Maximum_error.phpt
index 0199573178..13952ce6b2 100644
--- a/ext/intl/tests/calendar_get_Least_Greatest_Minimum_Maximum_error.phpt
+++ b/ext/intl/tests/calendar_get_Least_Greatest_Minimum_Maximum_error.phpt
@@ -73,6 +73,7 @@ try {
} catch (Error $e) {
echo get_class($e) . ': ' . $e->getCode() . ', ' . $e->getMessage() . \PHP_EOL;
}
+?>
--EXPECT--
ValueError: 0, IntlCalendar::getLeastMaximum(): Argument #1 ($field) must be a valid field
ValueError: 0, IntlCalendar::getMaximum(): Argument #1 ($field) must be a valid field
diff --git a/ext/intl/tests/calendar_get_getActualMaximum_Minumum_error2.phpt b/ext/intl/tests/calendar_get_getActualMaximum_Minumum_error2.phpt
index 95ecf0e08f..d3fadb16ed 100644
--- a/ext/intl/tests/calendar_get_getActualMaximum_Minumum_error2.phpt
+++ b/ext/intl/tests/calendar_get_getActualMaximum_Minumum_error2.phpt
@@ -74,6 +74,7 @@ try {
} catch (Error $e) {
echo get_class($e) . ': ' . $e->getCode() . ', ' . $e->getMessage() . \PHP_EOL;
}
+?>
--EXPECT--
ArgumentCountError: 0, intlcal_get() expects exactly 2 parameters, 1 given
ArgumentCountError: 0, intlcal_get_actual_maximum() expects exactly 2 parameters, 1 given
diff --git a/ext/intl/tests/calendar_inDaylightTime_error.phpt b/ext/intl/tests/calendar_inDaylightTime_error.phpt
index 4b6d88aa4c..f0cb1d0cb1 100644
--- a/ext/intl/tests/calendar_inDaylightTime_error.phpt
+++ b/ext/intl/tests/calendar_inDaylightTime_error.phpt
@@ -11,6 +11,7 @@ if (!extension_loaded('intl'))
ini_set("intl.error_level", E_WARNING);
var_dump(intlcal_in_daylight_time(1));
+?>
--EXPECTF--
Fatal error: Uncaught TypeError: intlcal_in_daylight_time(): Argument #1 ($calendar) must be of type IntlCalendar, int given in %s:%d
Stack trace:
diff --git a/ext/intl/tests/calendar_isEquivalentTo_error.phpt b/ext/intl/tests/calendar_isEquivalentTo_error.phpt
index a801bba952..1dc36c2a24 100644
--- a/ext/intl/tests/calendar_isEquivalentTo_error.phpt
+++ b/ext/intl/tests/calendar_isEquivalentTo_error.phpt
@@ -48,6 +48,7 @@ try {
} catch (Error $ex) {
echo "error: " . $ex->getCode() . ", " . $ex->getMessage() . "\n\n";
}
+?>
--EXPECT--
error: 0, IntlCalendar::isEquivalentTo(): Argument #1 ($calendar) must be of type IntlCalendar, int given
diff --git a/ext/intl/tests/calendar_isLenient_error.phpt b/ext/intl/tests/calendar_isLenient_error.phpt
index dafefcc640..b4e499cbb3 100644
--- a/ext/intl/tests/calendar_isLenient_error.phpt
+++ b/ext/intl/tests/calendar_isLenient_error.phpt
@@ -11,6 +11,7 @@ if (!extension_loaded('intl'))
ini_set("intl.error_level", E_WARNING);
var_dump(intlcal_is_lenient(1));
+?>
--EXPECTF--
Fatal error: Uncaught TypeError: intlcal_is_lenient(): Argument #1 ($calendar) must be of type IntlCalendar, int given in %s:%d
Stack trace:
diff --git a/ext/intl/tests/calendar_isSet_error.phpt b/ext/intl/tests/calendar_isSet_error.phpt
index ccd25f621a..f7d3c39601 100644
--- a/ext/intl/tests/calendar_isSet_error.phpt
+++ b/ext/intl/tests/calendar_isSet_error.phpt
@@ -22,7 +22,7 @@ try {
} catch (\TypeError $e) {
echo $e->getMessage() . \PHP_EOL;
}
-
+?>
--EXPECT--
IntlCalendar::isSet(): Argument #1 ($field) must be a valid field
intlcal_is_set(): Argument #1 ($calendar) must be of type IntlCalendar, int given
diff --git a/ext/intl/tests/calendar_isWeekend_error.phpt b/ext/intl/tests/calendar_isWeekend_error.phpt
index aed66aefda..72e4708c88 100644
--- a/ext/intl/tests/calendar_isWeekend_error.phpt
+++ b/ext/intl/tests/calendar_isWeekend_error.phpt
@@ -11,6 +11,7 @@ if (!extension_loaded('intl'))
ini_set("intl.error_level", E_WARNING);
var_dump(intlcal_is_weekend(1));
+?>
--EXPECTF--
Fatal error: Uncaught TypeError: intlcal_is_weekend(): Argument #1 ($calendar) must be of type IntlCalendar, int given in %s:%d
Stack trace:
diff --git a/ext/intl/tests/calendar_roll_error.phpt b/ext/intl/tests/calendar_roll_error.phpt
index 77ce6e16a8..1cad8c7e62 100644
--- a/ext/intl/tests/calendar_roll_error.phpt
+++ b/ext/intl/tests/calendar_roll_error.phpt
@@ -22,6 +22,7 @@ try {
} catch (\TypeError $e) {
echo $e->getMessage() . \PHP_EOL;
}
+?>
--EXPECTF--
IntlCalendar::roll(): Argument #1 ($field) must be a valid field
intlcal_roll(): Argument #1 ($calendar) must be of type IntlCalendar, int given
diff --git a/ext/intl/tests/calendar_setFirstDayOfWeek_error.phpt b/ext/intl/tests/calendar_setFirstDayOfWeek_error.phpt
index e3e3797b7a..5aae101c33 100644
--- a/ext/intl/tests/calendar_setFirstDayOfWeek_error.phpt
+++ b/ext/intl/tests/calendar_setFirstDayOfWeek_error.phpt
@@ -28,6 +28,7 @@ try {
echo $e->getMessage() . \PHP_EOL;
}
+?>
--EXPECT--
IntlCalendar::setFirstDayOfWeek(): Argument #1 ($dayOfWeek) must be a valid day of the week
intlcal_set_first_day_of_week(): Argument #2 ($dayOfWeek) must be a valid day of the week
diff --git a/ext/intl/tests/calendar_setLenient_error.phpt b/ext/intl/tests/calendar_setLenient_error.phpt
index 4dadb15c9f..63051c86a9 100644
--- a/ext/intl/tests/calendar_setLenient_error.phpt
+++ b/ext/intl/tests/calendar_setLenient_error.phpt
@@ -11,6 +11,7 @@ if (!extension_loaded('intl'))
ini_set("intl.error_level", E_WARNING);
var_dump(intlcal_set_lenient(1, false));
+?>
--EXPECTF--
Fatal error: Uncaught TypeError: intlcal_set_lenient(): Argument #1 ($calendar) must be of type IntlCalendar, int given in %s:%d
Stack trace:
diff --git a/ext/intl/tests/calendar_setMinimalDaysInFirstWeek_error.phpt b/ext/intl/tests/calendar_setMinimalDaysInFirstWeek_error.phpt
index 04c4811eb0..05c6cb8e90 100644
--- a/ext/intl/tests/calendar_setMinimalDaysInFirstWeek_error.phpt
+++ b/ext/intl/tests/calendar_setMinimalDaysInFirstWeek_error.phpt
@@ -28,6 +28,7 @@ try {
echo $e->getMessage() . \PHP_EOL;
}
+?>
--EXPECT--
IntlCalendar::setMinimalDaysInFirstWeek(): Argument #1 ($numberOfDays) must be between 1 and 7
intlcal_set_minimal_days_in_first_week(): Argument #2 ($numberOfDays) must be between 1 and 7
diff --git a/ext/intl/tests/calendar_setSkipped_RepeatedWallTimeOption_error.phpt b/ext/intl/tests/calendar_setSkipped_RepeatedWallTimeOption_error.phpt
index 80ed808e47..45f34911a1 100644
--- a/ext/intl/tests/calendar_setSkipped_RepeatedWallTimeOption_error.phpt
+++ b/ext/intl/tests/calendar_setSkipped_RepeatedWallTimeOption_error.phpt
@@ -28,6 +28,7 @@ try {
} catch (\TypeError $e) {
echo $e->getMessage() . \PHP_EOL;
}
+?>
--EXPECT--
IntlCalendar::setSkippedWallTimeOption(): Argument #1 ($wallTimeOption) must be one of IntlCalendar::WALLTIME_FIRST, IntlCalendar::WALLTIME_LAST, or IntlCalendar::WALLTIME_NEXT_VALID
IntlCalendar::setRepeatedWallTimeOption(): Argument #1 ($wallTimeOption) must be either IntlCalendar::WALLTIME_FIRST or IntlCalendar::WALLTIME_LAST
diff --git a/ext/intl/tests/calendar_setTimeZone_error.phpt b/ext/intl/tests/calendar_setTimeZone_error.phpt
index 722b876ec3..4d3e7fdc6d 100644
--- a/ext/intl/tests/calendar_setTimeZone_error.phpt
+++ b/ext/intl/tests/calendar_setTimeZone_error.phpt
@@ -40,6 +40,7 @@ try{
} catch (Error $ex) {
echo "error: " . $ex->getCode() . ", " . $ex->getMessage() . "\n\n";
}
+?>
--EXPECT--
error: 0, IntlCalendar::setTimeZone() expects exactly 1 parameter, 2 given
diff --git a/ext/intl/tests/calendar_setTimeZone_error2.phpt b/ext/intl/tests/calendar_setTimeZone_error2.phpt
index 767aafa95a..5474161e65 100644
--- a/ext/intl/tests/calendar_setTimeZone_error2.phpt
+++ b/ext/intl/tests/calendar_setTimeZone_error2.phpt
@@ -19,6 +19,7 @@ var_dump($intlcal->getTimeZone()->getID());
$pstdate = new DateTime('2012-01-01 00:00:00 +24:00');
$intlcal->setTimeZone($pstdate->getTimeZone());
var_dump($intlcal->getTimeZone()->getID());
+?>
--EXPECTF--
Warning: IntlCalendar::setTimeZone(): intlcal_set_time_zone: time zone id 'WEST' extracted from ext/date DateTimeZone not recognized in %s on line %d
string(16) "Europe/Amsterdam"
diff --git a/ext/intl/tests/calendar_setTimeZone_variation2.phpt b/ext/intl/tests/calendar_setTimeZone_variation2.phpt
index 7f4a7ffa37..3789f032e2 100644
--- a/ext/intl/tests/calendar_setTimeZone_variation2.phpt
+++ b/ext/intl/tests/calendar_setTimeZone_variation2.phpt
@@ -23,6 +23,7 @@ var_dump($intlcal->getTimeZone()->getID());
$offsetdate = new DateTime('2012-01-01 00:00:00 -02:30');
$intlcal->setTimeZone($offsetdate->getTimeZone());
var_dump($intlcal->getTimeZone()->getID());
+?>
--EXPECTF--
string(12) "Europe/Paris"
string(13) "Europe/Madrid"
diff --git a/ext/intl/tests/calendar_setTime_error.phpt b/ext/intl/tests/calendar_setTime_error.phpt
index 0fb906bc2f..8d4f726081 100644
--- a/ext/intl/tests/calendar_setTime_error.phpt
+++ b/ext/intl/tests/calendar_setTime_error.phpt
@@ -11,6 +11,7 @@ if (!extension_loaded('intl'))
ini_set("intl.error_level", E_WARNING);
var_dump(intlcal_set_time(1));
+?>
--EXPECTF--
Fatal error: Uncaught ArgumentCountError: intlcal_set_time() expects exactly 2 parameters, 1 given in %s:%d
Stack trace:
diff --git a/ext/intl/tests/calendar_set_error.phpt b/ext/intl/tests/calendar_set_error.phpt
index 236d3b6451..bd44356f61 100644
--- a/ext/intl/tests/calendar_set_error.phpt
+++ b/ext/intl/tests/calendar_set_error.phpt
@@ -41,6 +41,7 @@ try {
} catch (\TypeError $e) {
echo $e->getMessage() . \PHP_EOL;
}
+?>
--EXPECT--
IntlCalendar::set() expects at most 6 parameters, 7 given
IntlCalendar::set() has no variant with exactly 4 parameters
diff --git a/ext/intl/tests/calendar_toDateTime_error.phpt b/ext/intl/tests/calendar_toDateTime_error.phpt
index 01cf75c4c2..8a707b4507 100644
--- a/ext/intl/tests/calendar_toDateTime_error.phpt
+++ b/ext/intl/tests/calendar_toDateTime_error.phpt
@@ -40,6 +40,7 @@ try {
} catch (\TypeError $e) {
echo $e->getMessage() . \PHP_EOL;
}
+?>
--EXPECTF--
Warning: IntlCalendar::toDateTime(): intlcal_to_date_time: DateTimeZone constructor threw exception in %s on line %d
string(77) "exception: DateTimeZone::__construct(): Unknown or bad timezone (Etc/Unknown)"
diff --git a/ext/intl/tests/dateformat_clone_bad_obj.phpt b/ext/intl/tests/dateformat_clone_bad_obj.phpt
index 3425a1b0f8..a579968893 100644
--- a/ext/intl/tests/dateformat_clone_bad_obj.phpt
+++ b/ext/intl/tests/dateformat_clone_bad_obj.phpt
@@ -15,5 +15,6 @@ try {
} catch (Exception $e) {
var_dump($e->getMessage());
}
+?>
--EXPECTF--
string(%s) "Cannot clone unconstructed IntlDateFormatter"
diff --git a/ext/intl/tests/dateformat_format_relative.phpt b/ext/intl/tests/dateformat_format_relative.phpt
index f8e28220e5..745a0813a8 100644
--- a/ext/intl/tests/dateformat_format_relative.phpt
+++ b/ext/intl/tests/dateformat_format_relative.phpt
@@ -53,6 +53,7 @@ function getDayInPast(): DateTimeImmutable {
return new DateTimeImmutable("2020-01-20 20:20:20", new DateTimeZone("UTC"));
}
+?>
--EXPECT--
yesterday
yesterday
diff --git a/ext/intl/tests/dateformat_invalid_timezone.phpt b/ext/intl/tests/dateformat_invalid_timezone.phpt
index 5b54fa89bb..a19129391a 100644
--- a/ext/intl/tests/dateformat_invalid_timezone.phpt
+++ b/ext/intl/tests/dateformat_invalid_timezone.phpt
@@ -14,5 +14,6 @@ try {
} catch (\IntlException $e) {
echo $e->getMessage();
}
+?>
--EXPECT--
IntlDateFormatter::__construct(): Invalid date.timezone value 'Mars/Utopia_Planitia', we selected the timezone 'UTC' for now.
diff --git a/ext/intl/tests/dateformat_timezone_arg_variations.phpt b/ext/intl/tests/dateformat_timezone_arg_variations.phpt
index 5379ab2d5b..7c3972990c 100644
--- a/ext/intl/tests/dateformat_timezone_arg_variations.phpt
+++ b/ext/intl/tests/dateformat_timezone_arg_variations.phpt
@@ -34,6 +34,7 @@ echo $df->format($ts), "\n";
$df = new IntlDateFormatter('es_ES', 0, 0, 'Europe/Amsterdam', 0);
echo $df->format($ts), "\n";
+?>
--EXPECTF--
sábado%S 31 de diciembre de 2011 23:00:00 Hora%S de las Azores
domingo%S 1 de enero de 2012 01:00:00 Hora estándar de Europa Central
diff --git a/ext/intl/tests/dateformat_timezone_arg_variations2.phpt b/ext/intl/tests/dateformat_timezone_arg_variations2.phpt
index c50a6a8108..6091197813 100644
--- a/ext/intl/tests/dateformat_timezone_arg_variations2.phpt
+++ b/ext/intl/tests/dateformat_timezone_arg_variations2.phpt
@@ -34,6 +34,7 @@ echo $df->format($ts), "\n";
$df = new IntlDateFormatter('es_ES', 0, 0, 'Europe/Amsterdam', 0);
echo $df->format($ts), "\n";
+?>
--EXPECTF--
sábado%S, 31 de diciembre de 2011 23:00:00 Hora estándar de las Azores
domingo%S, 1 de enero de 2012 01:00:00 Hora estándar de Europa central
diff --git a/ext/intl/tests/dateformat_timezone_arg_variations3.phpt b/ext/intl/tests/dateformat_timezone_arg_variations3.phpt
index fe8841200a..95386c67c1 100644
--- a/ext/intl/tests/dateformat_timezone_arg_variations3.phpt
+++ b/ext/intl/tests/dateformat_timezone_arg_variations3.phpt
@@ -35,6 +35,7 @@ echo $df->format($ts), "\n";
$df = new IntlDateFormatter('es_ES', 0, 0, 'Europe/Amsterdam', 0);
echo $df->format($ts), "\n";
+?>
--EXPECTF--
sábado%S 31 de diciembre de 2011, 23:00:00 (Hora estándar de las Azores)
domingo%S 1 de enero de 2012, 1:00:00 (Hora estándar de Europa central)
diff --git a/ext/intl/tests/dateformat_timezone_arg_variations4.phpt b/ext/intl/tests/dateformat_timezone_arg_variations4.phpt
index 967c33e232..9a85eedf0f 100644
--- a/ext/intl/tests/dateformat_timezone_arg_variations4.phpt
+++ b/ext/intl/tests/dateformat_timezone_arg_variations4.phpt
@@ -34,6 +34,7 @@ echo $df->format($ts), "\n";
$df = new IntlDateFormatter('es_ES', 0, 0, 'Europe/Amsterdam', 0);
echo $df->format($ts), "\n";
+?>
--EXPECT--
sábado, 31 de diciembre de 2011, 23:00:00 (hora estándar de las Azores)
domingo, 1 de enero de 2012, 1:00:00 (hora estándar de Europa central)
diff --git a/ext/intl/tests/formatter_clone_bad_obj.phpt b/ext/intl/tests/formatter_clone_bad_obj.phpt
index d27024cb39..2c184f3d1f 100644
--- a/ext/intl/tests/formatter_clone_bad_obj.phpt
+++ b/ext/intl/tests/formatter_clone_bad_obj.phpt
@@ -15,5 +15,6 @@ try {
} catch (Exception $e) {
var_dump($e->getMessage());
}
+?>
--EXPECT--
string(42) "Cannot clone unconstructed NumberFormatter"
diff --git a/ext/intl/tests/gregoriancalendar___construct_error.phpt b/ext/intl/tests/gregoriancalendar___construct_error.phpt
index dcea7aa1db..7e5ce659bf 100644
--- a/ext/intl/tests/gregoriancalendar___construct_error.phpt
+++ b/ext/intl/tests/gregoriancalendar___construct_error.phpt
@@ -33,6 +33,7 @@ try {
} catch (TypeError $e) {
echo $e->getMessage(), "\n";
}
+?>
--EXPECT--
Too many arguments
Too many arguments
diff --git a/ext/intl/tests/idn_uts46_basic.phpt b/ext/intl/tests/idn_uts46_basic.phpt
index 5178c08d6c..492dbec7ed 100644
--- a/ext/intl/tests/idn_uts46_basic.phpt
+++ b/ext/intl/tests/idn_uts46_basic.phpt
@@ -26,6 +26,7 @@ var_dump($info);
echo "reverse, ok, with details:", "\n";
var_dump(idn_to_utf8($asciiNonTrans, 0, INTL_IDNA_VARIANT_UTS46, $info));
var_dump($info);
+?>
--EXPECT--
all ok, no details:
string(22) "www.xn--fuball-cta.com"
diff --git a/ext/intl/tests/ini_use_exceptions_basic.phpt b/ext/intl/tests/ini_use_exceptions_basic.phpt
index 8945c130eb..1b06e6de3a 100644
--- a/ext/intl/tests/ini_use_exceptions_basic.phpt
+++ b/ext/intl/tests/ini_use_exceptions_basic.phpt
@@ -14,6 +14,7 @@ try {
ini_set("intl.use_exceptions", false);
ini_set("intl.error_level", E_NOTICE);
var_dump($t->transliterate('a', 3));
+?>
--EXPECTF--
string(130) "transliterator_transliterate: Neither "start" nor the "end" arguments can exceed the number of UTF-16 code units (in this case, 1)"
diff --git a/ext/intl/tests/locale/bug74993.phpt b/ext/intl/tests/locale/bug74993.phpt
index 49b5bd4589..67cc101993 100644
--- a/ext/intl/tests/locale/bug74993.phpt
+++ b/ext/intl/tests/locale/bug74993.phpt
@@ -18,6 +18,7 @@ $funcs = [
foreach ($funcs as $func) {
echo (new ReflectionFunction($func));
}
+?>
--EXPECT--
Function [ <internal:intl> function locale_get_display_language ] {
diff --git a/ext/intl/tests/msgfmt_clone_bad_obj.phpt b/ext/intl/tests/msgfmt_clone_bad_obj.phpt
index 829cd6f1e2..7d7e93788c 100644
--- a/ext/intl/tests/msgfmt_clone_bad_obj.phpt
+++ b/ext/intl/tests/msgfmt_clone_bad_obj.phpt
@@ -15,5 +15,6 @@ try {
} catch (Exception $e) {
var_dump($e->getMessage());
}
+?>
--EXPECTF--
string(%d) "Cannot clone unconstructed MessageFormatter"
diff --git a/ext/intl/tests/msgfmt_format_error1.phpt b/ext/intl/tests/msgfmt_format_error1.phpt
index 1b460b65e1..4523613c77 100644
--- a/ext/intl/tests/msgfmt_format_error1.phpt
+++ b/ext/intl/tests/msgfmt_format_error1.phpt
@@ -14,5 +14,6 @@ EOD;
$mf = new MessageFormatter('en_US', $fmt);
var_dump($mf->format(array(7)));
+?>
--EXPECT--
string(5) "7 {1}"
diff --git a/ext/intl/tests/msgfmt_format_error2.phpt b/ext/intl/tests/msgfmt_format_error2.phpt
index 69ab9f37ca..487f760b52 100644
--- a/ext/intl/tests/msgfmt_format_error2.phpt
+++ b/ext/intl/tests/msgfmt_format_error2.phpt
@@ -14,6 +14,7 @@ EOD;
$mf = new MessageFormatter('en_US', $fmt);
var_dump($mf->format(array(7)));
+?>
--EXPECTF--
Warning: MessageFormatter::format(): Inconsistent types declared for an argument in %s on line %d
bool(false)
diff --git a/ext/intl/tests/msgfmt_format_error3.phpt b/ext/intl/tests/msgfmt_format_error3.phpt
index 5cbe9a121b..2df598ce5b 100644
--- a/ext/intl/tests/msgfmt_format_error3.phpt
+++ b/ext/intl/tests/msgfmt_format_error3.phpt
@@ -14,6 +14,7 @@ EOD;
$mf = new MessageFormatter('en_US', $fmt);
var_dump($mf->format(array("foo" => 7, -1 => "bar")));
+?>
--EXPECTF--
Warning: MessageFormatter::format(): Found negative or too large array key in %s on line %d
bool(false)
diff --git a/ext/intl/tests/msgfmt_format_error5.phpt b/ext/intl/tests/msgfmt_format_error5.phpt
index c828b43abb..5ec5ddf189 100644
--- a/ext/intl/tests/msgfmt_format_error5.phpt
+++ b/ext/intl/tests/msgfmt_format_error5.phpt
@@ -16,6 +16,7 @@ EOD;
$mf = new MessageFormatter('en_US', $fmt);
var_dump($mf->format(array("foo" => new stdclass())));
+?>
--EXPECTF--
Warning: MessageFormatter::format(): msgfmt_format: invalid object type for date/time (only IntlCalendar and DateTimeInterface permitted) in %s on line %d
diff --git a/ext/intl/tests/msgfmt_format_error6.phpt b/ext/intl/tests/msgfmt_format_error6.phpt
index 8a6998a35b..968701b711 100644
--- a/ext/intl/tests/msgfmt_format_error6.phpt
+++ b/ext/intl/tests/msgfmt_format_error6.phpt
@@ -14,6 +14,7 @@ EOD;
$mf = new MessageFormatter('en_US', $fmt);
var_dump($mf->format(array("foo" => 'bar', 7 => fopen('php://memory', 'r+'))));
+?>
--EXPECTF--
Warning: MessageFormatter::format(): No strategy to convert the value given for the argument with key '7' is available in %s on line %d
bool(false)
diff --git a/ext/intl/tests/timezone_IDforWindowsID_basic.phpt b/ext/intl/tests/timezone_IDforWindowsID_basic.phpt
index e2cb329196..ccf923f42a 100644
--- a/ext/intl/tests/timezone_IDforWindowsID_basic.phpt
+++ b/ext/intl/tests/timezone_IDforWindowsID_basic.phpt
@@ -25,6 +25,7 @@ foreach ($tzs as $tz => $regions) {
}
}
}
+?>
--EXPECT--
** Gnomeregan
bool(false)
diff --git a/ext/intl/tests/timezone_IDforWindowsID_basic2.phpt b/ext/intl/tests/timezone_IDforWindowsID_basic2.phpt
index 800fc9a021..5008c2b66a 100644
--- a/ext/intl/tests/timezone_IDforWindowsID_basic2.phpt
+++ b/ext/intl/tests/timezone_IDforWindowsID_basic2.phpt
@@ -24,6 +24,7 @@ foreach ($tzs as $tz => $regions) {
}
}
}
+?>
--EXPECT--
** Gnomeregan
bool(false)
diff --git a/ext/intl/tests/timezone_countEquivalentIDs_error.phpt b/ext/intl/tests/timezone_countEquivalentIDs_error.phpt
index 4fc9b02a1d..6629f74ba6 100644
--- a/ext/intl/tests/timezone_countEquivalentIDs_error.phpt
+++ b/ext/intl/tests/timezone_countEquivalentIDs_error.phpt
@@ -9,6 +9,7 @@ if (!extension_loaded('intl'))
ini_set("intl.error_level", E_WARNING);
var_dump(IntlTimeZone::countEquivalentIDs("foo\x80"));
+?>
--EXPECTF--
Warning: IntlTimeZone::countEquivalentIDs(): intltz_count_equivalent_ids: could not convert time zone id to UTF-16 in %s on line %d
bool(false)
diff --git a/ext/intl/tests/timezone_createTimeZoneIDEnumeration_error.phpt b/ext/intl/tests/timezone_createTimeZoneIDEnumeration_error.phpt
index 2b847ec841..3bf7c9a670 100644
--- a/ext/intl/tests/timezone_createTimeZoneIDEnumeration_error.phpt
+++ b/ext/intl/tests/timezone_createTimeZoneIDEnumeration_error.phpt
@@ -9,6 +9,7 @@ if (!extension_loaded('intl'))
ini_set("intl.error_level", E_WARNING);
var_dump(IntlTimeZone::createTimeZoneIDEnumeration(-1));
+?>
--EXPECTF--
Warning: IntlTimeZone::createTimeZoneIDEnumeration(): intltz_create_time_zone_id_enumeration: bad zone type in %s on line %d
bool(false)
diff --git a/ext/intl/tests/timezone_fromDateTimeZone_basic.phpt b/ext/intl/tests/timezone_fromDateTimeZone_basic.phpt
index c846b0b20e..b15edc030d 100644
--- a/ext/intl/tests/timezone_fromDateTimeZone_basic.phpt
+++ b/ext/intl/tests/timezone_fromDateTimeZone_basic.phpt
@@ -29,6 +29,7 @@ $dtz = $dt->getTimeZone();
var_dump($dtz->getName());
$tz = IntlTimeZone::fromDateTimeZone($dtz);
var_dump($tz->getID(), $tz->getRawOffset() /* (3*60+40)*60000 */);
+?>
--EXPECTF--
string(16) "Europe/Amsterdam"
int(3600000)
diff --git a/ext/intl/tests/timezone_getDisplayName_error.phpt b/ext/intl/tests/timezone_getDisplayName_error.phpt
index 0a76fcf1e9..41131e0fe3 100644
--- a/ext/intl/tests/timezone_getDisplayName_error.phpt
+++ b/ext/intl/tests/timezone_getDisplayName_error.phpt
@@ -12,6 +12,7 @@ $tz = IntlTimeZone::createTimeZone('Europe/Lisbon');
var_dump($tz->getDisplayName(false, -1));
var_dump(intltz_get_display_name(null, IntlTimeZone::DISPLAY_SHORT, false, 'pt_PT'));
+?>
--EXPECTF--
Warning: IntlTimeZone::getDisplayName(): intltz_get_display_name: wrong display type in %s on line %d
bool(false)
diff --git a/ext/intl/tests/timezone_hasSameRules_error.phpt b/ext/intl/tests/timezone_hasSameRules_error.phpt
index 99d2a2e21d..c087e1ac5b 100644
--- a/ext/intl/tests/timezone_hasSameRules_error.phpt
+++ b/ext/intl/tests/timezone_hasSameRules_error.phpt
@@ -29,6 +29,7 @@ try {
var_dump($ex->getCode(), $ex->getMessage());
echo "\n";
}
+?>
--EXPECT--
int(0)
string(101) "IntlTimeZone::hasSameRules(): Argument #1 ($otherTimeZone) must be of type IntlTimeZone, string given"
diff --git a/ext/intl/tests/timezone_toDateTimeZone_basic.phpt b/ext/intl/tests/timezone_toDateTimeZone_basic.phpt
index 3679fe9717..f27ee72097 100644
--- a/ext/intl/tests/timezone_toDateTimeZone_basic.phpt
+++ b/ext/intl/tests/timezone_toDateTimeZone_basic.phpt
@@ -22,6 +22,7 @@ function do_test(IntlTimeZone $tz, $proc = false) {
do_test(IntlTimeZone::createTimeZone('CET'));
do_test(IntlTimeZone::createTimeZone('Europe/Amsterdam'));
do_test(IntlTimeZone::createTimeZone('GMT+0405'), true);
+?>
--EXPECTF--
string(3) "CET"
int(3600000)
diff --git a/ext/intl/tests/timezone_toDateTimeZone_error.phpt b/ext/intl/tests/timezone_toDateTimeZone_error.phpt
index 530c73e3be..fc2552e690 100644
--- a/ext/intl/tests/timezone_toDateTimeZone_error.phpt
+++ b/ext/intl/tests/timezone_toDateTimeZone_error.phpt
@@ -17,6 +17,7 @@ try {
}
var_dump(intltz_to_date_time_zone(1));
+?>
--EXPECTF--
Warning: IntlTimeZone::toDateTimeZone(): intltz_to_date_time_zone: DateTimeZone constructor threw exception in %s on line %d
string(66) "DateTimeZone::__construct(): Unknown or bad timezone (Etc/Unknown)"
diff --git a/ext/intl/tests/timezone_windowsID_basic.phpt b/ext/intl/tests/timezone_windowsID_basic.phpt
index e91d5f5ba9..edf2fd5a47 100644
--- a/ext/intl/tests/timezone_windowsID_basic.phpt
+++ b/ext/intl/tests/timezone_windowsID_basic.phpt
@@ -28,6 +28,7 @@ foreach ($tzs as $tz) {
echo "Error: ", intl_get_error_message(), "\n";
}
}
+?>
--EXPECT--
string(24) "SA Pacific Standard Time"
string(21) "Eastern Standard Time"
diff --git a/ext/intl/tests/timezone_windowsID_basic2.phpt b/ext/intl/tests/timezone_windowsID_basic2.phpt
index 94a1ac198c..7c00b646b6 100644
--- a/ext/intl/tests/timezone_windowsID_basic2.phpt
+++ b/ext/intl/tests/timezone_windowsID_basic2.phpt
@@ -27,6 +27,7 @@ foreach ($tzs as $tz) {
echo "Error: ", intl_get_error_message(), "\n";
}
}
+?>
--EXPECT--
string(24) "SA Pacific Standard Time"
string(18) "Cuba Standard Time"
diff --git a/ext/intl/tests/transliterator_clone.phpt b/ext/intl/tests/transliterator_clone.phpt
index 3253b0f793..f8e376fee6 100644
--- a/ext/intl/tests/transliterator_clone.phpt
+++ b/ext/intl/tests/transliterator_clone.phpt
@@ -14,6 +14,7 @@ $u = clone $t;
echo $u->id, ": ", $u->transliterate($str), "\n";
echo "Done.\n";
+?>
--EXPECT--
hex-any: a 万
hex-any: a 万
diff --git a/ext/intl/tests/transliterator_create_basic.phpt b/ext/intl/tests/transliterator_create_basic.phpt
index 171687aae8..6950960ecd 100644
--- a/ext/intl/tests/transliterator_create_basic.phpt
+++ b/ext/intl/tests/transliterator_create_basic.phpt
@@ -12,6 +12,7 @@ $t = transliterator_create("any-latin");
echo $t->id,"\n";
echo "Done.\n";
+?>
--EXPECT--
any-latin
any-latin
diff --git a/ext/intl/tests/transliterator_create_error.phpt b/ext/intl/tests/transliterator_create_error.phpt
index 4f2d04ae78..fd2acd393b 100644
--- a/ext/intl/tests/transliterator_create_error.phpt
+++ b/ext/intl/tests/transliterator_create_error.phpt
@@ -12,6 +12,7 @@ Transliterator::create("bad UTF-8 \x8F");
echo intl_get_error_message(), "\n";
echo "Done.\n";
+?>
--EXPECTF--
Warning: Transliterator::create(): transliterator_create: unable to open ICU transliterator with id "inexistent id" in %s on line %d
transliterator_create: unable to open ICU transliterator with id "inexistent id": U_INVALID_ID
diff --git a/ext/intl/tests/transliterator_create_from_rule_basic.phpt b/ext/intl/tests/transliterator_create_from_rule_basic.phpt
index eb8d5da787..42b5649771 100644
--- a/ext/intl/tests/transliterator_create_from_rule_basic.phpt
+++ b/ext/intl/tests/transliterator_create_from_rule_basic.phpt
@@ -21,6 +21,7 @@ $u = transliterator_create_from_rules($rules, Transliterator::REVERSE);
echo $u->transliterate("``akk ``bkk ``aooy"), "\n";
echo "Done.\n";
+?>
--EXPECT--
RulesTransPHP
“akk ``bkk “aooy
diff --git a/ext/intl/tests/transliterator_create_from_rule_error.phpt b/ext/intl/tests/transliterator_create_from_rule_error.phpt
index 64c57da854..83e36a5cc0 100644
--- a/ext/intl/tests/transliterator_create_from_rule_error.phpt
+++ b/ext/intl/tests/transliterator_create_from_rule_error.phpt
@@ -24,6 +24,7 @@ RULES;
$t = Transliterator::createFromRules($rules);
echo intl_get_error_message(),"\n";
echo "Done.\n";
+?>
--EXPECTF--
Warning: Transliterator::createFromRules(): String conversion of rules to UTF-16 failed in %s on line %d
String conversion of rules to UTF-16 failed: U_INVALID_CHAR_FOUND
diff --git a/ext/intl/tests/transliterator_create_inverse_basic.phpt b/ext/intl/tests/transliterator_create_inverse_basic.phpt
index 3b78ee9d6b..c7694a021e 100644
--- a/ext/intl/tests/transliterator_create_inverse_basic.phpt
+++ b/ext/intl/tests/transliterator_create_inverse_basic.phpt
@@ -25,6 +25,7 @@ var_dump($orstr === $recovstr);
var_dump($orstr === $recovstr2);
echo "Done.\n";
+?>
--EXPECT--
オーシャンビュー
ōshanbyū
diff --git a/ext/intl/tests/transliterator_get_error_code_basic.phpt b/ext/intl/tests/transliterator_get_error_code_basic.phpt
index 3d16a8a9a0..307f0b2334 100644
--- a/ext/intl/tests/transliterator_get_error_code_basic.phpt
+++ b/ext/intl/tests/transliterator_get_error_code_basic.phpt
@@ -15,6 +15,7 @@ var_dump($t->transliterate(""));
echo $t->getErrorCode(), "\n";
echo "Done.\n";
+?>
--EXPECTF--
Warning: Transliterator::transliterate(): String conversion of string to UTF-16 failed in %s on line %d
bool(false)
diff --git a/ext/intl/tests/transliterator_get_error_message_basic.phpt b/ext/intl/tests/transliterator_get_error_message_basic.phpt
index 4e918530b2..cbb028ab00 100644
--- a/ext/intl/tests/transliterator_get_error_message_basic.phpt
+++ b/ext/intl/tests/transliterator_get_error_message_basic.phpt
@@ -15,6 +15,7 @@ var_dump($t->transliterate(""));
echo $t->getErrorMessage(), "\n";
echo "Done.\n";
+?>
--EXPECTF--
Warning: Transliterator::transliterate(): String conversion of string to UTF-16 failed in %s on line %d
bool(false)
diff --git a/ext/intl/tests/transliterator_list_ids_basic.phpt b/ext/intl/tests/transliterator_list_ids_basic.phpt
index af65b5853e..e5bd4a3ea5 100644
--- a/ext/intl/tests/transliterator_list_ids_basic.phpt
+++ b/ext/intl/tests/transliterator_list_ids_basic.phpt
@@ -10,6 +10,7 @@ var_dump(count(transliterator_list_ids()) > 100);
var_dump(count(Transliterator::listIDs()) > 100);
echo "Done.\n";
+?>
--EXPECT--
bool(true)
bool(true)
diff --git a/ext/intl/tests/transliterator_property_id.phpt b/ext/intl/tests/transliterator_property_id.phpt
index b5337b68e6..1ac45981a4 100644
--- a/ext/intl/tests/transliterator_property_id.phpt
+++ b/ext/intl/tests/transliterator_property_id.phpt
@@ -11,6 +11,7 @@ echo $revtr->id, "\n";
var_dump($revtr);
echo "Done.\n";
+?>
--EXPECTF--
Katakana-Latin
Latin-Katakana
diff --git a/ext/intl/tests/transliterator_transliterate_basic.phpt b/ext/intl/tests/transliterator_transliterate_basic.phpt
index f117834781..387f0cbd91 100644
--- a/ext/intl/tests/transliterator_transliterate_basic.phpt
+++ b/ext/intl/tests/transliterator_transliterate_basic.phpt
@@ -12,6 +12,7 @@ echo $t->transliterate($s, 3),"\n";
echo $t->transliterate($s, 3, 4),"\n";
echo "Done.\n";
+?>
--EXPECT--
Kontogiannátos, Basílēs
Kontogiannátos, Basílēs
diff --git a/ext/intl/tests/transliterator_transliterate_error.phpt b/ext/intl/tests/transliterator_transliterate_error.phpt
index da9a887455..d33e8b3f37 100644
--- a/ext/intl/tests/transliterator_transliterate_error.phpt
+++ b/ext/intl/tests/transliterator_transliterate_error.phpt
@@ -17,6 +17,7 @@ var_dump(transliterator_transliterate($tr,"str",7,6));
transliterator_transliterate($tr, "\x80\x03");
echo "Done.\n";
+?>
--EXPECTF--
Warning: transliterator_transliterate(): transliterator_transliterate: Neither "start" nor the "end" arguments can exceed the number of UTF-16 code units (in this case, 3) in %s on line %d
bool(false)
diff --git a/ext/intl/tests/transliterator_transliterate_variant1.phpt b/ext/intl/tests/transliterator_transliterate_variant1.phpt
index dcd01efd40..3c5a1899a9 100644
--- a/ext/intl/tests/transliterator_transliterate_variant1.phpt
+++ b/ext/intl/tests/transliterator_transliterate_variant1.phpt
@@ -20,6 +20,7 @@ echo transliterator_transliterate(new A(), $str), "\n";
echo intl_get_error_message(), "\n";
echo "Done.\n";
+?>
--EXPECTF--
\u0020o
diff --git a/ext/intl/tests/uconverter___construct_error.phpt b/ext/intl/tests/uconverter___construct_error.phpt
index 1b2480818b..c5f20c6d6e 100644
--- a/ext/intl/tests/uconverter___construct_error.phpt
+++ b/ext/intl/tests/uconverter___construct_error.phpt
@@ -8,6 +8,7 @@ intl.error_level = E_WARNING
<?php
$c = new UConverter('utf-8', "\x80");
var_dump($c);
+?>
--EXPECTF--
Warning: UConverter::__construct(): ucnv_open() returned error 4: U_FILE_ACCESS_ERROR in %s on line %d
object(UConverter)#%d (0) {
diff --git a/ext/intl/tests/uconverter_bug66873.phpt b/ext/intl/tests/uconverter_bug66873.phpt
index aa1045ec35..c94da0c87d 100644
--- a/ext/intl/tests/uconverter_bug66873.phpt
+++ b/ext/intl/tests/uconverter_bug66873.phpt
@@ -7,5 +7,6 @@ Bug #66873 - crash in UConverter with invalid encoding
$o = new UConverter(1, 1);
$o->toUCallback(1, 1, 1, $b);
var_dump($o->getErrorCode());
+?>
--EXPECT--
int(27)
diff --git a/ext/intl/tests/uconverter_enum.phpt b/ext/intl/tests/uconverter_enum.phpt
index 09b6c23194..73b9ec0f1c 100644
--- a/ext/intl/tests/uconverter_enum.phpt
+++ b/ext/intl/tests/uconverter_enum.phpt
@@ -12,6 +12,7 @@ var_dump(in_array('ISO-8859-1', $avail));
$latin1 = UConverter::getAliases('latin1');
var_dump(in_array('ISO-8859-1', $latin1));
+?>
--EXPECT--
bool(true)
bool(true)
diff --git a/ext/intl/tests/uconverter_func_basic.phpt b/ext/intl/tests/uconverter_func_basic.phpt
index da8956beae..04a0cbc1f0 100644
--- a/ext/intl/tests/uconverter_func_basic.phpt
+++ b/ext/intl/tests/uconverter_func_basic.phpt
@@ -10,6 +10,7 @@ var_dump(urlencode(UConverter::transcode("Espa\xF1ol", 'utf-8', 'latin1')));
var_dump(urlencode(UConverter::transcode("Stra\xDFa", 'utf-8', 'latin1')));
var_dump(bin2hex(UConverter::transcode("\xE4", 'utf-8', 'koi8-r')));
+?>
--EXPECT--
string(23) "This is an ascii string"
string(12) "Espa%C3%B1ol"
diff --git a/ext/intl/tests/uconverter_func_subst.phpt b/ext/intl/tests/uconverter_func_subst.phpt
index 09121ff49b..5052b711f5 100644
--- a/ext/intl/tests/uconverter_func_subst.phpt
+++ b/ext/intl/tests/uconverter_func_subst.phpt
@@ -21,6 +21,7 @@ foreach(array('?','','??') as $subst) {
var_dump($ret);
}
}
+?>
--EXPECT--
string(23) "This is an ascii string"
string(12) "Snowman: (?)"
diff --git a/ext/intl/tests/uconverter_getDestinationEncoding.phpt b/ext/intl/tests/uconverter_getDestinationEncoding.phpt
index 0bfe25d2e3..4b899bb01c 100644
--- a/ext/intl/tests/uconverter_getDestinationEncoding.phpt
+++ b/ext/intl/tests/uconverter_getDestinationEncoding.phpt
@@ -10,5 +10,6 @@ intl.error_level = E_WARNING
<?php
$c = new UConverter('UTF-7', 'ascii');
var_dump($c->getDestinationEncoding());
+?>
--EXPECT--
string(5) "UTF-7"
diff --git a/ext/intl/tests/uconverter_getSourceEncoding.phpt b/ext/intl/tests/uconverter_getSourceEncoding.phpt
index c544e8e9b2..3e93e19881 100644
--- a/ext/intl/tests/uconverter_getSourceEncoding.phpt
+++ b/ext/intl/tests/uconverter_getSourceEncoding.phpt
@@ -10,5 +10,6 @@ intl.error_level = E_WARNING
<?php
$c = new UConverter('utf-32', 'ascii');
var_dump($c->getSourceEncoding());
+?>
--EXPECT--
string(8) "US-ASCII"
diff --git a/ext/intl/tests/uconverter_oop_algo.phpt b/ext/intl/tests/uconverter_oop_algo.phpt
index 349182ce32..f8533502a9 100644
--- a/ext/intl/tests/uconverter_oop_algo.phpt
+++ b/ext/intl/tests/uconverter_oop_algo.phpt
@@ -11,6 +11,7 @@ var_dump(UConverter::UTF8 === $c->getDestinationType());
$c = new UConverter('koi8-r', 'utf-32be');
var_dump(UConverter::UTF32_BigEndian === $c->getSourceType());
var_dump(UConverter::SBCS === $c->getDestinationType());
+?>
--EXPECT--
bool(true)
bool(true)
diff --git a/ext/intl/tests/uconverter_oop_basic.phpt b/ext/intl/tests/uconverter_oop_basic.phpt
index 2b8909ff31..3df7218889 100644
--- a/ext/intl/tests/uconverter_oop_basic.phpt
+++ b/ext/intl/tests/uconverter_oop_basic.phpt
@@ -13,6 +13,7 @@ var_dump(urlencode($c->convert("Stra\xC3\x9Fa", true))); // Reverse prior op
$k = new UConverter('utf-8', 'koi8-r');
var_dump(bin2hex($k->convert("\xE4"))); // U+0414 CYRILLIC CAPITAL LETTER DE
+?>
--EXPECT--
string(23) "This is an ascii string"
string(12) "Espa%C3%B1ol"
diff --git a/ext/intl/tests/uconverter_oop_callback.phpt b/ext/intl/tests/uconverter_oop_callback.phpt
index 4c31babf86..c6e34fc27d 100644
--- a/ext/intl/tests/uconverter_oop_callback.phpt
+++ b/ext/intl/tests/uconverter_oop_callback.phpt
@@ -28,6 +28,7 @@ $c = new MyConverter('ascii', 'utf-8');
foreach(array("regular", "irregul\xC1\xA1r", "\xC2\xA1unsupported!") as $word) {
$c->convert($word);
}
+?>
--EXPECT--
toUCallback(REASON_RESET, ...)
toUCallback(REASON_RESET, ...)
diff --git a/ext/intl/tests/uconverter_oop_callback2.phpt b/ext/intl/tests/uconverter_oop_callback2.phpt
index 960e4edfc9..e9123fc006 100644
--- a/ext/intl/tests/uconverter_oop_callback2.phpt
+++ b/ext/intl/tests/uconverter_oop_callback2.phpt
@@ -28,6 +28,7 @@ $c = new MyConverter('ascii', 'utf-8');
foreach(array("regular", "irregul\xC1\xA1r", "\xC2\xA1unsupported!") as $word) {
$c->convert($word);
}
+?>
--EXPECT--
toUCallback(REASON_RESET, ...)
toUCallback(REASON_RESET, ...)
diff --git a/ext/intl/tests/uconverter_oop_callback_return.phpt b/ext/intl/tests/uconverter_oop_callback_return.phpt
index cd7e7a5834..f6fa22ba87 100644
--- a/ext/intl/tests/uconverter_oop_callback_return.phpt
+++ b/ext/intl/tests/uconverter_oop_callback_return.phpt
@@ -35,6 +35,7 @@ $c = new MyConverter('ascii', 'utf-8');
var_dump($c->convert("\x80\x81\x82\x83"));
// This line will trigger fromUCallback
var_dump($c->convert("\xC3\xB1\xC3\xB2\xC3\xB3\xC3\xB4"));
+?>
--EXPECT--
string(3) "abc"
string(3) "ABC"
diff --git a/ext/intl/tests/uconverter_oop_subst.phpt b/ext/intl/tests/uconverter_oop_subst.phpt
index 3cfc0078df..7cef051eec 100644
--- a/ext/intl/tests/uconverter_oop_subst.phpt
+++ b/ext/intl/tests/uconverter_oop_subst.phpt
@@ -16,6 +16,7 @@ foreach(array('?','','<unknown>') as $subst) {
var_dump($c->convert("This is an ascii string"));
var_dump($c->convert("Snowman: (\xE2\x98\x83)"));
}
+?>
--EXPECT--
string(23) "This is an ascii string"
string(12) "Snowman: (?)"
diff --git a/ext/intl/tests/uconverter_setSourceEncoding.phpt b/ext/intl/tests/uconverter_setSourceEncoding.phpt
index 69d8d346ab..2428cebc53 100644
--- a/ext/intl/tests/uconverter_setSourceEncoding.phpt
+++ b/ext/intl/tests/uconverter_setSourceEncoding.phpt
@@ -12,6 +12,7 @@ $c = new UConverter('latin1', 'ascii');
var_dump($c->getSourceEncoding());
$c->setSourceEncoding('utf-7');
var_dump($c->getSourceEncoding());
+?>
--EXPECT--
string(8) "US-ASCII"
string(5) "UTF-7"
diff --git a/ext/intl/uchar/tests/basic-functionality.phpt b/ext/intl/uchar/tests/basic-functionality.phpt
index b61e129051..d5677f5a76 100644
--- a/ext/intl/uchar/tests/basic-functionality.phpt
+++ b/ext/intl/uchar/tests/basic-functionality.phpt
@@ -49,6 +49,7 @@ IntlChar::enumCharNames(0x2600, 0x2610, function($cp, $nc, $name) {
});
echo "RECYCLING SYMBOL FOR TYPE-1 PLASTICS => ";
var_dump(IntlChar::charFromName("RECYCLING SYMBOL FOR TYPE-1 PLASTICS"));
+?>
--EXPECT--
Codepoint range: 0000-10ffff
Codepoint U+0050