[php-src] PR #22656: ext/gmp: Fix GMP operator RHS overflow for GMP values

From: Date: Thu, 09 Jul 2026 17:16:43 +0000
Subject: [php-src] PR #22656: ext/gmp: Fix GMP operator RHS overflow for GMP values
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-36936@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/22656 Author: LamentXU123 ```php <?php $too_large = gmp_init("18446744073709551616"); var_dump(gmp_init(2) ** $too_large); var_dump(gmp_init(2) << $too_large); ``` ``` object(GMP)#3 (1) { ["num"]=> string(1) "1" } object(GMP)#2 (1) { ["num"]=> string(1) "2" } ``` This is a follow-up of #21945 that we should reject large RHS gmp number objects.

« previous php.git-pulls (#36936) next »