Skip to content

ext/intl: Fix Locale::lookup() ignoring the default locale for an empty language tag list - #25462

Open
LamentXU123 wants to merge 1 commit into
php:PHP-8.4from
LamentXU123:fix/intl-locale-lookup-fallback
Open

LamentXU123 wants to merge 1 commit into
php:PHP-8.4from
LamentXU123:fix/intl-locale-lookup-fallback

Conversation

@LamentXU123

Copy link
Copy Markdown
Member
Locale::lookup([], 'fr_FR', false, 'en_US');

This should return 'en_US' instead of empty string.

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.

1 participant