diff options
Diffstat (limited to 'Auth/OpenID/BigMath.php')
-rw-r--r-- | Auth/OpenID/BigMath.php | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/Auth/OpenID/BigMath.php b/Auth/OpenID/BigMath.php index 3113104..c4c75f6 100644 --- a/Auth/OpenID/BigMath.php +++ b/Auth/OpenID/BigMath.php @@ -336,14 +336,19 @@ class Auth_OpenID_GmpMathWrapper extends Auth_OpenID_MathLibrary{ * this array. */ global $_Auth_OpenID_math_extensions; -$_Auth_OpenID_math_extensions = array( - array('modules' => array('gmp', 'php_gmp'), - 'extension' => 'gmp', - 'class' => 'Auth_OpenID_GmpMathWrapper'), - array('modules' => array('bcmath', 'php_bcmath'), - 'extension' => 'bcmath', - 'class' => 'Auth_OpenID_BcMathWrapper') - ); +$_Auth_OpenID_math_extensions = array(); + +if (!defined('Auth_OpenID_BUGGY_GMP')) { + $_Auth_OpenID_math_extensions[] = + array('modules' => array('gmp', 'php_gmp'), + 'extension' => 'gmp', + 'class' => 'Auth_OpenID_GmpMathWrapper'); +} + +$_Auth_OpenID_math_extensions[] = array( + 'modules' => array('bcmath', 'php_bcmath'), + 'extension' => 'bcmath', + 'class' => 'Auth_OpenID_BcMathWrapper'); /** * Detect which (if any) math library is available |