[php-src] PR #16898: Add test for bug GH-16870 (Overly restrictive gmp_pow overflow checks)
| From: | GaryAllan | Date: | Fri, 22 Nov 2024 15:22:23 +0000 |
| Subject: | [php-src] PR #16898: Add test for bug GH-16870 (Overly restrictive gmp_pow overflow checks) | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-29729@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/16898
Author: GaryAllan
Add test file for Bug #16870
```bash
$ /usr/bin/php -v
PHP 8.3.14 (cli) (built: Nov 21 2024 14:44:18) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.3.14, Copyright (c) Zend Technologies
with Xdebug v3.3.2, Copyright (c) 2002-2024, by Derick Rethans
$ ./run-tests.php -p /usr/bin/php ./ext/gmp/ | grep 16870
PASS Bug GH-16870 (Overly restrictive gmp_pow overflow checks) [ext/gmp/tests/gh16870.phpt]
```
```bash
$ ./sapi/cli/php -v
PHP 8.5.0-dev (cli) (built: Nov 22 2024 12:04:57) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.5.0-dev, Copyright (c) Zend Technologies
$ ./run-tests.php -p ./sapi/cli/php ./ext/gmp/ | grep 16870
FAIL Bug GH-16870 (Overly restrictive gmp_pow overflow checks) [ext/gmp/tests/gh16870.phpt]
Bug GH-16870 (Overly restrictive gmp_pow overflow checks) [ext/gmp/tests/gh16870.phpt]
```