Project

General

Profile

Actions

Bug #102095

closed

Mitigate locale `C` in `DateFormatter` wrapping class

Added by Stefan Bürk about 1 year ago. Updated 5 months ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
Localization
Target version:
-
Start date:
2023-10-05
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
12
PHP Version:
8.3
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Since PHP 8.3RC3 [1] the `\IntlDateFormatter` throws a
`\IntlException` exception with the message:

datefmt_create: invalid locale: U_ILLEGAL_ARGUMENT_ERROR

if a invalid locale is passed to the constructor. The value `C`
is considered as a non valid locale, albeit it may be set.

See: https://github.com/php/php-src/commit/a80db7b52aa134bdc8b9841

Actions

Also available in: Atom PDF