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

Commit

Permalink
fixed gmp check for PHP7
Browse files Browse the repository at this point in the history
  • Loading branch information
pfefferle authored Nov 23, 2016
1 parent 231e954 commit a50189e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion admin_panels.php
Original file line number Diff line number Diff line change
Expand Up @@ -570,7 +570,7 @@ function openid_printSystemStatus() {
$status[] = array( 'Curl Support', isset($curl_version), $curl_message );
}

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

0 comments on commit a50189e

Please sign in to comment.