Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix GH-12635: Test bug69398.phpt fails with ICU 74.1
ICU 74.1 contains new locale data that breaks the test. Split the test based on the version number to resolve the issue. Closes GH-12653.
- Loading branch information
Showing
3 changed files
with
26 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--TEST-- | ||
IntlDateFormatter::formatObject(): returns wrong value when time style is NONE. | ||
--EXTENSIONS-- | ||
intl | ||
--SKIPIF-- | ||
<?php | ||
if (version_compare(INTL_ICU_VERSION, '74.1') < 0) die('skip for ICU < 74.1'); | ||
?> | ||
--FILE-- | ||
<?php | ||
$millitimestamp = 1428133423941.0; // 14:43:43 April 04 2015 | ||
$date = IntlCalendar::createInstance('Asia/Ho_Chi_Minh'); | ||
$date->setTime($millitimestamp); | ||
echo IntlDateFormatter::formatObject($date, array(IntlDateFormatter::SHORT, IntlDateFormatter::NONE), 'vi_VN'), "\n"; | ||
echo IntlDateFormatter::formatObject ($date, array(IntlDateFormatter::SHORT, IntlDateFormatter::NONE), 'ko_KR'), "\n"; | ||
?> | ||
--EXPECT-- | ||
4/4/15 | ||
15. 4. 4. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters