[php-src] Issue #8907: strcmp return value changed between 8.2 alpha 1 and alpha 2
| From: | TRowbotham | Date: | Sat, 02 Jul 2022 05:43:11 +0000 |
| Subject: | [php-src] Issue #8907: strcmp return value changed between 8.2 alpha 1 and alpha 2 | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-241849@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/8907
Author: TRowbotham
### 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](https://www.php.net/manual/en/function.strcmp.php#refsect1-function.strcmp-returnvalues).
If the change in behavior was intentional, it may be worth noting somewhere.
### PHP Version
PHP 8.2.0alpha2
### Operating System
Ubuntu 20.04