Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug #40162 [Intl] fix Locale::getFallback() throwing exception on lon…
…g $locale (AmirHo3ein13) This PR was squashed before being merged into the 4.4 branch. Discussion ---------- [Intl] fix Locale::getFallback() throwing exception on long $locale | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | Fix #39100 | License | MIT | Doc PR | `Locale::getFallback()` throws an exception when the `$locale` length is greater than `INTL_MAX_LOCALE_LEN` so I added a condition to check if locale_parse return null, the `Locale::getFallback()` don't call `\count` function and just return null instead. Commits ------- a89ced8 [Intl] fix Locale::getFallback() throwing exception on long $locale
- Loading branch information