[php-src] PR #21812: ext/gmp: reject values larger than unsigned long in gmp_pow/binomial/…
| From: | devnexen | Date: | Sun, 19 Apr 2026 07:46:11 +0000 |
| Subject: | [php-src] PR #21812: ext/gmp: reject values larger than unsigned long in gmp_pow/binomial/… | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-35790@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/21812
Author: devnexen
…root/rootrem and shift/pow operators.
Applies the gmp_fact() pattern (0236667bd94) to the remaining zend_long -> gmp_ulong casts that
could silently overflow on LLP64 platforms.
gmp_powm() switches to zend_argument_error() with the correct argument index (#3 $modulus) for
modulo-by-zero.