Skip to content

ext/intl: Fix ResourceBundle fallback-disabled error message#22236

Open
LamentXU123 wants to merge 1 commit into
php:masterfrom
LamentXU123:fix-intl-error-message
Open

ext/intl: Fix ResourceBundle fallback-disabled error message#22236
LamentXU123 wants to merge 1 commit into
php:masterfrom
LamentXU123:fix-intl-error-message

Conversation

@LamentXU123
Copy link
Copy Markdown
Contributor

When ResourceBundle::get() rejects fallback results when fallback is disabled
Original error message:

Cannot load element %d without fallback from to %s

It should be

Cannot load element %d without fallback to %s

I also change the declaration line of icuerror to make it initialized. Not sure if this worth NEWS and UPGRADING entries but I am targeting master as this is actually a typo fix.

@LamentXU123 LamentXU123 force-pushed the fix-intl-error-message branch from a9a161e to fdee518 Compare June 5, 2026 17:58
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