[php-src] Issue #8857: Strange (buggy?) side effect of PHP 8's new string/number comparison changes

From: Date: Thu, 23 Jun 2022 22:28:29 +0000
Subject: [php-src] Issue #8857: Strange (buggy?) side effect of PHP 8's new string/number comparison changes
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-241799@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/8857 Author: kingIZZZY ### Description ### Relevant - https://wiki.php.net/rfc/saner-numeric-strings - https://wiki.php.net/rfc/string_to_number_comparison If the intent was to have "saner numeric strings" then mission failed successfully? The following code: ```php <?php echo phpversion(), PHP_EOL; var_dump("10=" > 1); var_dump("10=" > 2); var_dump("10=" >= 10); ``` Resulted in this output: ``` 7.4.0 thru 7.4.30 bool(true) bool(true) bool(true) 8.0.1 thru 8.1.7 bool(true) bool(false) bool(true) ``` But I expected this output instead: ``` bool(true) bool(true) bool(true) ``` ### PHP Version 8.0.1 - 8.1.7, 7.4.0 - 7.4.30 ### Operating System Ubuntu 20.04.4

« previous php.bugs (#241799) next »