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

Key verification crashes under latest PHP versions #89

Closed
Firehed opened this issue Nov 25, 2024 · 1 comment · Fixed by #90
Closed

Key verification crashes under latest PHP versions #89

Firehed opened this issue Nov 25, 2024 · 1 comment · Fixed by #90

Comments

@Firehed
Copy link
Owner

Firehed commented Nov 25, 2024

php/php-src#16870

Fatal error: Uncaught ValueError: base and exponent overflow in /in/lnhXp:4
Stack trace:
#0 /in/lnhXp(4): gmp_pow(Object(GMP), 3)
#1 {main}
  thrown in /in/lnhXp on line 4

Process exited with code 255.

https://3v4l.org/lnhXp

For now, avoid updating to 8.4.1/8.3.14/8.2.26.

@Firehed Firehed pinned this issue Nov 25, 2024
@Girgias
Copy link

Girgias commented Nov 26, 2024

As I just mentioned in the thread, it seems you could use the fact that the overloading of ** was missed by the broken "fix".

So you could rewrite it as: $gmpObject ** 3, and it "should" work.

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

Successfully merging a pull request may close this issue.

2 participants