[php-src] Issue #13726: Array > PHP_INT_MAX and 0 at the same time

From: Date: Fri, 15 Mar 2024 19:04:18 +0000
Subject: [php-src] Issue #13726: Array > PHP_INT_MAX and 0 at the same time
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-246592@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/13726 Author: kkmuffme ### Description The following code: ```php <?php $a = array(); echo (int) $a . PHP_EOL; if ($a > PHP_INT_MAX) { echo "yes"; } ``` Resulted in this output: ``` 0 yes ``` But I expected this output instead: ``` 0 ``` Obviously same problem with non-empty arrays. ### PHP Version PHP 8.3.4 ### Operating System https://3v4l.org/

« previous php.bugs (#246592) next »