diff options
author | tailor <cygnus@janrain.com> | 2005-12-29 18:36:20 +0000 |
---|---|---|
committer | tailor <cygnus@janrain.com> | 2005-12-29 18:36:20 +0000 |
commit | 1e24e162a20b200803dd66cdbd1f01157ef0d453 (patch) | |
tree | 518f3ca3abafedded006c24e074d3425017a64ea | |
parent | e3775066cd71884c8c8b00abcebe14d05dbf377f (diff) | |
download | php-openid-1e24e162a20b200803dd66cdbd1f01157ef0d453.zip php-openid-1e24e162a20b200803dd66cdbd1f01157ef0d453.tar.gz php-openid-1e24e162a20b200803dd66cdbd1f01157ef0d453.tar.bz2 |
[project @ Changed the return value of getLibWrapper to return a reference.]
-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(); } } |