Source:
https://www.php.net/manual/en/intldateformatter.create.php
Quote:
Return Values ¶ The created IntlDateFormatter or FALSE in case of failure.
Code:
$fmt = new IntlDateFormatter( "en_US" ,IntlDateFormatter::FULL, IntlDateFormatter::FULL,
'America/Los_Angeles',IntlDateFormatter::GREGORIAN );
var_dump($fmt);
$fmt = new IntlDateFormatter( "madeupfakenonexistent" ,IntlDateFormatter::FULL, IntlDateFormatter::FULL,
'America/Los_Angeles',IntlDateFormatter::GREGORIAN );
var_dump($fmt);
Actual output:
object(IntlDateFormatter)#3 (0) {
}
object(IntlDateFormatter)#2 (0) {
}
Expected output:
object(IntlDateFormatter)#3 (0) {
}
bool(false)
PHP:
7.4.12
Conclusion:
The manual is lying or I'm misinterpreting it.