[php-src] Issue #8778: Integer arithmethic with large number variants fails

From: Date: Tue, 14 Jun 2022 13:42:58 +0000
Subject: [php-src] Issue #8778: Integer arithmethic with large number variants fails
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-241731@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/8778 Author: cmb69 ### Description The following code: ```php <?php $int = 0x100000000; var_dump( $int, new variant($int) + 1 ); ``` Resulted in this output: ``` int(4294967296) Fatal error: Uncaught TypeError: Unsupported operand types: variant + int in %s:%d ``` But I expected this output instead: ``` int(4294967296) int(4294967297) ``` ### PHP Version PHP-8.0 ### Operating System Windows x64

« previous php.bugs (#241731) next »