diff options
author | tailor <cygnus@janrain.com> | 2007-03-07 17:37:04 +0000 |
---|---|---|
committer | tailor <cygnus@janrain.com> | 2007-03-07 17:37:04 +0000 |
commit | aa34bb782900e5bcbe90656bac8904ef5b4a3ee2 (patch) | |
tree | e2300a7ca3ea3647c9c009a505c8fd95c3b57b93 | |
parent | 8e421ce7d9051927fa29b040a23528659833bbe0 (diff) | |
download | php-openid-aa34bb782900e5bcbe90656bac8904ef5b4a3ee2.zip php-openid-aa34bb782900e5bcbe90656bac8904ef5b4a3ee2.tar.gz php-openid-aa34bb782900e5bcbe90656bac8904ef5b4a3ee2.tar.bz2 |
[project @ Fix pass-by-reference for _extractAssociation]
-rw-r--r-- | Auth/OpenID/Consumer.php | 2 | ||||
-rw-r--r-- | Tests/Auth/OpenID/AssociationResponse.php | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/Auth/OpenID/Consumer.php b/Auth/OpenID/Consumer.php index 1859f5c..16d0a41 100644 --- a/Auth/OpenID/Consumer.php +++ b/Auth/OpenID/Consumer.php @@ -1335,7 +1335,7 @@ class Auth_OpenID_GenericConsumer { return $this->_extractAssociation($response_message, $assoc_session); } - function _extractAssociation($assoc_response, $assoc_session) + function _extractAssociation(&$assoc_response, &$assoc_session) { // Extract the common fields from the response, raising an // exception if they are not found diff --git a/Tests/Auth/OpenID/AssociationResponse.php b/Tests/Auth/OpenID/AssociationResponse.php index a4763c8..e21ef73 100644 --- a/Tests/Auth/OpenID/AssociationResponse.php +++ b/Tests/Auth/OpenID/AssociationResponse.php @@ -55,7 +55,8 @@ class Tests_Auth_OpenID_AssociationResponse extends PHPUnit_TestCase { function _run($keys) { $msg = mkAssocResponse($keys); - $this->assertTrue(is_a($this->consumer->_extractAssociation($msg, null), + $dumb = null; + $this->assertTrue(is_a($this->consumer->_extractAssociation($msg, $dumb), 'Auth_OpenID_FailureResponse')); } } |