You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In PHP 8.1.24 it was possible to use IntlDateFormatter with an invalid locale: IntlDateFormatter::create('xx');
In PHP 8.1.25 the same code would fail and throw an exception.
In PHP 8.1.26 the exception is no longer thrown, but the object is unconstructed and using it generates a fatal error.
Description
Related to: #12282
In PHP 8.1.24 it was possible to use IntlDateFormatter with an invalid locale: IntlDateFormatter::create('xx');
In PHP 8.1.25 the same code would fail and throw an exception.
In PHP 8.1.26 the exception is no longer thrown, but the object is unconstructed and using it generates a fatal error.
How can we check if the IntlDateFormatter object is constructed without generating a fatal error?
PHP Version
PHP 8.1.26
Operating System
No response
The text was updated successfully, but these errors were encountered: