PHP - allow_call_time_pass_reference
With the WordPress OpenID plugin activated a PHP warning message about a call-time pass-by-reference appears at the top of each page. The plugin is working fine except for the warning text. I tried overriding the setting for this in .htaccess but that doesn't work.
On my home computer that I use as a test server if I set
allow_call_time_pass_reference = On
the warning message isn't shown. Besides changing the code, which is way over my head, is there anything that can be done about this?
Offline
#2 2006-11-19 10:56:42
- tioat
- New member

- Registered: 2006-11-19
- Posts: 8
- Website Expertise
Re: PHP - allow_call_time_pass_reference
Found the answer in the Knowledge Base 3.10. Creating your own php.ini
And it worked!
Offline
#3 2006-11-19 13:07:20
- tijs
- Member

- From: Amsterdam, NL
- Registered: 2005-11-13
- Posts: 51
- Website Expertise
Re: PHP - allow_call_time_pass_reference
it would be better to rewrite the function a bit. the plugin is simply not PHP 5 compatible, but it should be an easy rewrite.
http://nl3.php.net/manual/en/language.references.pass.php
most of the time simply removing the & is enough since PHP 5 handles references better than 4 used to.
Offline
#4 2006-11-20 00:08:52
- trel1023
- Moderator

- Registered: 2004-06-01
- Posts: 595
- Website Expertise
Re: PHP - allow_call_time_pass_reference
I've been working with Alan on this plugin - and it's like tijs said - a problem with PHP4 and PHP5 not playing the same with pass-by-reference.
On a server with PHP5, it should run as
tioat - glad it's working for you.
For those of you following at home - we're talking about this plugin for Wordpress - WPOpenID
- 上一篇:Schemas and PHP
- 下一篇:Javascript and images
- Recommend
-
- Hottest
-