--TEST-- Bug #71516 IntlDateFormatter losts locale if pattern is set via constructor --SKIPIF-- --FILE-- 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==