[php-src] PR #16891: Fix GH-16890: array_sum() with GMP can loose precision (LLP64)
| From: | cmb69 | Date: | Thu, 21 Nov 2024 16:41:59 +0000 |
| Subject: | [php-src] PR #16891: Fix GH-16890: array_sum() with GMP can loose precision (LLP64) | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-29721@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/16891
Author: cmb69
We must use
mpz_fits_si_p() instead of mpz_fits_slong_p() since the latter
is not suitable for LLP64 data models.
---
Note that I've targeted PHP-8.3 since I haven't been able to find a suitable test case.
Still, I think the actual fix should go into PHP-8.2.