PHP Warning: Call-time pass-by-reference has been deprecated [SOLVED]

Jump to: navigation, search

I'm getting two messages using this extension in my otherwise pristine error logs. They are:

PHP Warning:  Call-time pass-by-reference has been deprecated; 
  If you would like to pass it by reference, modify the declaration of [runtime function name]().
  If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. 
  in PHP\PEAR\Auth\OpenID\AX.php on line 963 (also line 891)

and

PHP Notice:  Uninitialized string offset:  0 in includes\WebRequest.php on line 461

The second is a malformed URI - but I don't know why it's getting passed that way.

The first is obviously in the PHP Auth\OpenID pear package.

Any ideas?

The second one. Because you are not able to access to the default $wgOpenIDConsumerStorePath and $wgOpenIDServerStorePath. Set
 $wgOpenIDConsumerStoreType = "file";
 $wgOpenIDServerStoreType = "file";
and
 $wgOpenIDConsumerStorePath
 $wgOpenIDServerStorePath

--Onecountry 16:04, 27 May 2010 (UTC)

Any help about the first annoying log-message Call-time pass-by-reference...? Ankostis 16:45, 22 November 2010 (UTC)
Note: see info "https://github.com/openid/php-openid/issues#issue/8" "I am getting some PHP Errors as you cannot pass references in function like call_user_function() and call_user_function_array() anymore. It was a warning in PHP5, and it errors out in 5.3. So '&' should be removed from ...."
A patch is here Extension:OpenID/README#cite ref-patch18635 0-0
Note: solved in 0.902-beta

--Wikinaut 21:07, 17 May 2011 (UTC)

Wikinaut02:56, 30 May 2011
Personal tools

Variants
Actions
Navigation
Support
Download
Development
Communication
Toolbox