Closed
Description
<?php
$a = new IntlDateFormatter('C', IntlDateFormatter::FULL, IntlDateFormatter::FULL);
var_dump($a->getLocale(ULOC_VALID_LOCALE));
?>
Result:
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 #12568 (comment)