Skip to content

ext/intl: wrap DateTimeZone constructor exception in an IntlException #19410

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

Girgias
Copy link
Member

@Girgias Girgias commented Aug 7, 2025

The motivation is two fold:

  • Userland code that deals with ext/intl can be expected to handle IntlException but not necessarily ext/date exceptions
  • This removes the possibility of superfluous warnings being emitted by ext/intl when an exception has already been thrown

The motivation is two fold:
- Userland code that deals with ext/intl can be expected to handle IntlException but not necessarily ext/date exceptions
- This removes the possibility of superfluous warnings being emitted by ext/intl when an exception has already been thrown
@Girgias Girgias marked this pull request as ready for review August 7, 2025 23:57
@Girgias Girgias requested a review from devnexen as a code owner August 7, 2025 23:57
@Girgias Girgias merged commit 1e108e9 into php:master Aug 9, 2025
8 of 9 checks passed
@Girgias Girgias deleted the intl-throw-exception-on-datetime-ctor-failure branch August 9, 2025 10:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants