[php-src] Issue #12943: IntlDateFormatter with ``'C'`` locale still broken on PHP 8.2
| From: | Girgias | Date: | Tue, 12 Dec 2023 15:49:45 +0000 |
| Subject: | [php-src] Issue #12943: IntlDateFormatter with ``'C'`` locale still broken on PHP 8.2 | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-246044@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/12943
Author: Girgias
```php
<?php
$a = new IntlDateFormatter('C', IntlDateFormatter::FULL, IntlDateFormatter::FULL);
var_dump($a->getLocale(ULOC_VALID_LOCALE));
?>
```
Result:
```code
Fatal error: Uncaught Error: Found unconstructed IntlDateFormatter in /in/qCifp:6
Stack trace:
#0 /in/qCifp(6): IntlDateFormatter->getLocale(1)
#1 {main}
thrown in /in/qCifp on line 6
Process exited with code 255.
```
I would expect a notice or warning but not the fatal error. Please can you explain the usage?
_Originally posted by @hormus in https://github.com/php/php-src/issues/12568#issuecomment-1826205182_