Skip to content
This repository was archived by the owner on Jun 4, 2024. It is now read-only.

Commit a50189e

Browse files
authored
fixed gmp check for PHP7
1 parent 231e954 commit a50189e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

admin_panels.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -570,7 +570,7 @@ function openid_printSystemStatus() {
570570
$status[] = array( 'Curl Support', isset($curl_version), $curl_message );
571571
}
572572

573-
if (extension_loaded('gmp') and @gmp_init(1)) {
573+
if (extension_loaded('gmp') and @gmp_add(1,1)==2) {
574574
$status[] = array( 'Big Integer support', true, 'GMP is installed.' );
575575
} elseif (extension_loaded('bcmath') and @bcadd(1,1)==2) {
576576
$status[] = array( 'Big Integer support', true, 'BCMath is installed (though <a href="http://www.php.net/gmp">GMP</a> is preferred).' );

0 commit comments

Comments
 (0)