diff options
author | tailor <cygnus@janrain.com> | 2007-04-02 23:10:29 +0000 |
---|---|---|
committer | tailor <cygnus@janrain.com> | 2007-04-02 23:10:29 +0000 |
commit | 08d202e7dfd5825b31973f3a304276ce9e36f312 (patch) | |
tree | 35d9f3e753442e4d7db8f0d8f02bfa174b828064 /Auth | |
parent | ff745c87a8a9a366b6b038d73589fa59fc01f509 (diff) | |
download | php-openid-08d202e7dfd5825b31973f3a304276ce9e36f312.zip php-openid-08d202e7dfd5825b31973f3a304276ce9e36f312.tar.gz php-openid-08d202e7dfd5825b31973f3a304276ce9e36f312.tar.bz2 |
[project @ Added buggy GMP define to override math library preference]
Diffstat (limited to 'Auth')
-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 |