Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gmp_pow fails in PHP 8.2.26 and 8.3.14 #214

Closed
kelvinmo opened this issue Dec 10, 2024 · 0 comments · Fixed by #215
Closed

gmp_pow fails in PHP 8.2.26 and 8.3.14 #214

kelvinmo opened this issue Dec 10, 2024 · 0 comments · Fixed by #215
Labels

Comments

@kelvinmo
Copy link
Owner

Description

In the certain php minor releases there is an issue with gmp_pow that only accepts very small values: php/php-src#16870 Concretely, for reasonably big numbers, the execution fails with Uncaught ValueError: base and exponent overflow According to the changelog, this change is in 8.3.14 and 8.2.26.

This issue affects ECKey::isValid().

Steps to reproduce

See https://github.com/kelvinmo/simplejwt/actions/runs/12244128129/job/34155190113?pr=213

Expected behaviour

A clear and concise description of what you expected to happen.

Environment

  • PHP: 8.3.14 and 8.2.26

Backtrace

See https://github.com/kelvinmo/simplejwt/actions/runs/12244128129/job/34155190113?pr=213

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant