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

Error in php 7 #1

Open
Emrod82 opened this issue May 5, 2021 · 0 comments
Open

Error in php 7 #1

Emrod82 opened this issue May 5, 2021 · 0 comments

Comments

@Emrod82
Copy link

Emrod82 commented May 5, 2021

Cannot make this work in php 7. It throw error, from code:

else {
$ip = gmp_init(strval($ip), 10);
if ($format == "default") {
if(is_ipv4($ip))
$format = "dotted";
else
$format = "ipv6";
}

Error: the XML response that was returned from the server is invalid. Received:
Warning: gmp_init(): Unable to convert variable to GMP - string is not an integer in /opt/ona/www/include/functions_general.inc.php on line 638

Warning: gmp_init(): Unable to convert variable to GMP - string is not an integer in /opt/ona/www/include/functions_general.inc.php on line 638

Warning: gmp_init(): Unable to convert variable to GMP - string is not an integer in /opt/ona/www/include/functions_general.inc.php on line 638

Warning: gmp_init(): Unable to convert variable to GMP - string is not an integer in /opt/ona/www/include/functions_general.inc.php on line 638

Warning: gmp_init(): Unable to convert variable to GMP - string is not an integer in /opt/ona/www/include/functions_general.inc.php on line 638

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

No branches or pull requests

1 participant