diff options
Diffstat (limited to 'Net/OpenID')
-rw-r--r-- | Net/OpenID/CryptUtil.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Net/OpenID/CryptUtil.php b/Net/OpenID/CryptUtil.php index fa09811..61a12ae 100644 --- a/Net/OpenID/CryptUtil.php +++ b/Net/OpenID/CryptUtil.php @@ -335,7 +335,7 @@ class Net_OpenID_MathLibrary { 'class' => 'Net_OpenID_BcMathWrapper') ); - function getLibWrapper() { + function &getLibWrapper() { static $lib = null; if (!$lib) { @@ -358,13 +358,13 @@ class Net_OpenID_MathLibrary { if ($loaded) { $classname = $extension['class']; - $lib = $classname(); + $lib =& new $classname(); break; } } if (!$lib) { - $lib = new Net_OpenID_MathWrapper(); + $lib =& new Net_OpenID_MathWrapper(); } } |