diff options
author | tailor <cygnus@janrain.com> | 2007-01-15 21:28:01 +0000 |
---|---|---|
committer | tailor <cygnus@janrain.com> | 2007-01-15 21:28:01 +0000 |
commit | 42288029f3758515c81249416724861919e10621 (patch) | |
tree | 690fca5d887d4b528bd52360364e7aaf5a1f6b8c /Auth | |
parent | 14accb1feaddda8b5e601ade3b7f1c4c2840eb8d (diff) | |
download | php-openid-42288029f3758515c81249416724861919e10621.zip php-openid-42288029f3758515c81249416724861919e10621.tar.gz php-openid-42288029f3758515c81249416724861919e10621.tar.bz2 |
[project @ Return-by-reference fixes]
Diffstat (limited to 'Auth')
-rw-r--r-- | Auth/OpenID/Association.php | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/Auth/OpenID/Association.php b/Auth/OpenID/Association.php index 241d590..bdd712f 100644 --- a/Auth/OpenID/Association.php +++ b/Auth/OpenID/Association.php @@ -387,16 +387,18 @@ function Auth_OpenID_getOnlyEncryptedOrder() array('HMAC-SHA1', 'DH-SHA1')); } -function Auth_OpenID_getDefaultNegotiator() +function &Auth_OpenID_getDefaultNegotiator() { - return new Auth_OpenID_SessionNegotiator( + $x = new Auth_OpenID_SessionNegotiator( Auth_OpenID_getDefaultAssociationOrder()); + return $x; } -function Auth_OpenID_getEncryptedNegotiator() +function &Auth_OpenID_getEncryptedNegotiator() { - return new Auth_OpenID_SessionNegotiator( + $x = new Auth_OpenID_SessionNegotiator( Auth_OpenID_getOnlyEncryptedOrder()); + return $x; } class Auth_OpenID_SessionNegotiator { |