-
Notifications
You must be signed in to change notification settings - Fork 7.9k
[intl] Weird numeric sort in Collator #18566
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
Labels
Comments
The ultimate cause seems to be php-src/ext/intl/collator/collator_convert.c Line 322 in 2e70a89
|
nielsdos
added a commit
to nielsdos/php-src
that referenced
this issue
May 24, 2025
This aligns the behaviour with normal (non-intl) asort() by making the following changes: - Use the same trailing whitespace logic as Zend's is_numeric_ex() - Don't allow errors on trailing data Targeting master because of the BC break.
nielsdos
added a commit
to nielsdos/php-src
that referenced
this issue
May 24, 2025
This aligns the behaviour with normal (non-intl) asort() by making the following changes: - Use the same trailing whitespace logic as Zend's is_numeric_ex() - Don't allow errors on trailing data Targeting master because of the BC break.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Description
The following code:
Resulted in this output:
But I expected this output instead:
PHP Version
https://3v4l.org/fVcRj
Operating System
any
The text was updated successfully, but these errors were encountered: