We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Issue can be found in https://github.com/php/php-src/blob/master/ext/gmp/gmp.c#L624
The following code:
<?php $x = gmp_init(gmp_init(123));
Resulted in this output:
PHP Warning: Uncaught TypeError: gmp_init(): Argument #1 ($num) must be of type GMP|string|int, GMP given in php shell code:1
But I expected this output instead:
PHP Warning: Uncaught TypeError: gmp_init(): Argument #1 ($num) must be of type string|int, GMP given in php shell code:1
8.1.6
Gentoo
The text was updated successfully, but these errors were encountered:
Looks like just an oversight in the error message itself.
Sorry, something went wrong.
Fix phpGH-9308 GMP throws the wrong error when a GMP object is passed…
e687086
… to gmp_init()
293e691
Girgias
No branches or pull requests
Description
Issue can be found in https://github.com/php/php-src/blob/master/ext/gmp/gmp.c#L624
The following code:
Resulted in this output:
But I expected this output instead:
PHP Version
8.1.6
Operating System
Gentoo
The text was updated successfully, but these errors were encountered: