Skip to content

Commit

Permalink
Merge pull request openid#70 from arnaud-lb/fix-call-time-pass-by-ref
Browse files Browse the repository at this point in the history
Remove call-time pass-by-reference
  • Loading branch information
marcoceppi committed Jul 31, 2012
2 parents d4e5efe + bb6da33 commit 705d5a6
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
8 changes: 5 additions & 3 deletions Auth/OpenID/Consumer.php
Original file line number Diff line number Diff line change
Expand Up @@ -1183,9 +1183,11 @@ function _verifyDiscoveryResultsOpenID2($message, $endpoint)
function _discoverAndVerify($claimed_id, $to_match_endpoints)
{
// oidutil.log('Performing discovery on %s' % (claimed_id,))
list($unused, $services) = call_user_func($this->discoverMethod,
$claimed_id,
&$this->fetcher);
list($unused, $services) = call_user_func_array($this->discoverMethod,
array(
$claimed_id,
&$this->fetcher,
));

if (!$services) {
return new Auth_OpenID_FailureResponse(null,
Expand Down
2 changes: 1 addition & 1 deletion Auth/OpenID/Server.php
Original file line number Diff line number Diff line change
Expand Up @@ -1704,7 +1704,7 @@ function handleRequest($request)
{
if (method_exists($this, "openid_" . $request->mode)) {
$handler = array($this, "openid_" . $request->mode);
return call_user_func($handler, &$request);
return call_user_func_array($handler, array(&$request));
}
return null;
}
Expand Down
8 changes: 5 additions & 3 deletions Auth/Yadis/Manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -411,9 +411,11 @@ function getNextService($discover_cb, $fetcher)
if (!$manager || (!$manager->services)) {
$this->destroyManager();

list($yadis_url, $services) = call_user_func($discover_cb,
$this->url,
&$fetcher);
list($yadis_url, $services) = call_user_func_array($discover_cb,
array(
$this->url,
&$fetcher,
));

$manager = $this->createManager($services, $yadis_url);
}
Expand Down

0 comments on commit 705d5a6

Please sign in to comment.