summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Auth/OpenID/BigMath.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/Auth/OpenID/BigMath.php b/Auth/OpenID/BigMath.php
index 481275e..ffe768d 100644
--- a/Auth/OpenID/BigMath.php
+++ b/Auth/OpenID/BigMath.php
@@ -246,6 +246,11 @@ class Auth_OpenID_BcMathWrapper extends Auth_OpenID_MathLibrary{
return $this->_powmod($base, $exponent, $modulus);
}
}
+
+ function toString($num)
+ {
+ return $num;
+ }
}
/**
@@ -305,6 +310,10 @@ class Auth_OpenID_GmpMathWrapper extends Auth_OpenID_MathLibrary{
return gmp_powm($base, $exponent, $modulus);
}
+ function toString($num)
+ {
+ return gmp_strval($num);
+ }
}
/**