Fatal error when using the default PHP locale
jonasraoni opened this issue · comments
The code (new IntlDateFormatter('C'))->format(new DateTime())
generates a fatal error on the latest PHP 8.x releases, see a reproduction case here and the exception below:
PHP Fatal error: Uncaught Error: Found unconstructed IntlDateFormatter in /var/www/html/vendor/php81_bc/strftime/src/php-8.1-strftime.php:100
Thanks! As an extra note, this has been fixed in PHP 8.2.15 (see: php/php-src#12943).