-
Notifications
You must be signed in to change notification settings - Fork 7.8k
strcmp return value changed between 8.2 alpha 1 and alpha 2 #8907
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
Comments
Introduced in #8220 , and indeed no mention in |
|
I think we still should document this change; after all, it broke some of our own tests, and likely breaks some userland tests as well (and maybe even production code), even though it is not really a BC break. |
binary safe string comparisons and recent socket option addition.
I can't say that the previous behavior is any more correct than the new behavior as they both meet the documented criteria of |
binary safe string comparisons and recent socket option addition.
Description
https://3v4l.org/Iue7N - previous behavior
https://3v4l.org/Iue7N/rfc#vgit.master - behavior in 8.2 alpha 2
I didn't notice this documented in the release notes or upgrade notes, though the return value is still technically correct according to the documentation. If the change in behavior was intentional, it may be worth noting somewhere.
PHP Version
PHP 8.2.0alpha2
Operating System
Ubuntu 20.04
The text was updated successfully, but these errors were encountered: