Skip to content

Add test for bug GH-16870 (Overly restrictive gmp_pow overflow checks) - #16898

Open
GaryAllan wants to merge 2 commits into
php:masterfrom
GaryAllan:GH-16870
Open

Add test for bug GH-16870 (Overly restrictive gmp_pow overflow checks)#16898
GaryAllan wants to merge 2 commits into
php:masterfrom
GaryAllan:GH-16870

Conversation

@GaryAllan

Copy link
Copy Markdown

Add test file for Bug #16870

$ /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] 
$ ./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]

@GirgiasGirgias left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add an XFAIL section so that CI is green :)

Comment threadext/gmp/tests/gh16870.phpt
Add XFAIL header for CI
Co-authored-by: Gina Peter Banyard <girgias@php.net>
@cmb69

Copy link
Copy Markdown
Member

IMO, it's better to replace the test case of #16884 with this one, instead of running XFAIL tests in CI while the bug fix is pending.

@Girgias

Copy link
Copy Markdown
Member

Can you rebase this without the XFAIL as we removed the overlow check?

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@GaryAllan@cmb69@Girgias