Skip to content

ext/intl: Fix Collator sort conversion error handling#22893

Open
LamentXU123 wants to merge 3 commits into
php:masterfrom
LamentXU123:dep
Open

ext/intl: Fix Collator sort conversion error handling#22893
LamentXU123 wants to merge 3 commits into
php:masterfrom
LamentXU123:dep

Conversation

@LamentXU123

Copy link
Copy Markdown
Member

This fixes Collator::sort(), collator_sort(), Collator::asort(), and collator_asort() so string conversion failures during comparison are reported through the intl error mechanism instead of emitting a warning and continuing with an empty string.

@LamentXU123
LamentXU123 marked this pull request as ready for review July 27, 2026 07:55
@LamentXU123
LamentXU123 requested a review from devnexen as a code owner July 27, 2026 07:55
Comment thread ext/intl/collator/collator_sort.cpp Outdated
Comment thread ext/intl/tests/collator_sort_conversion_error_procedural.phpt
Comment thread ext/intl/collator/collator_convert.cpp
Comment thread ext/intl/collator/collator_convert.cpp Outdated
@devnexen

Copy link
Copy Markdown
Member

not done reviewing will resume later, probably few more points down the road

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