Issue Bug Closed

#102095Mitigate locale `C` in `DateFormatter` wrapping class

Stefan Bürk 10/05/23, 10:37 updated 07/09/24, 15:19

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

Reviews 2

History 37

  1. Gerrit Code Review pushed patch set 1 for main to change 81325 status New Under Review 10/05/23, 11:04

  2. Stefan Bürk changed description 10/05/23, 11:58

  3. Gerrit Code Review pushed patch set 2 for main to change 81325 10/05/23, 12:06

  4. Gerrit Code Review pushed patch set 3 for main to change 81325 10/05/23, 12:55

  5. Gerrit Code Review pushed patch set 1 for 12.4 to change 81335 10/05/23, 14:47

  6. Stefan Bürk commented and changed status Under Review Resolved done 0 % 100 % 10/05/23, 15:00

    Applied in changeset commit:7e7c078d8bdddb10ae5122973435614c1533f290.

  7. Benni Mack changed status Resolved Closed 07/09/24, 15:19