Forum Moderators: coopster

Message Too Old, No Replies

Call time pass by reference?

         

Karabaja

1:05 pm on Sep 5, 2006 (gmt 0)

10+ Year Member



I've been getting this error in my logs:

PHP Warning: Call-time pass-by-reference has been deprecated - argument passed by value; 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. However, future versions may not support this any longer.

Should allow_call_time_pass_reference be set to "on" or "true"?
I think I've tried both bust still getting the error. Error is in arcade.php, it is arcade system for vbulletin board.

[edited by: Karabaja at 1:06 pm (utc) on Sep. 5, 2006]

jatar_k

4:30 pm on Sep 5, 2006 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



what line of code is giving you the warning?

You would be better off changing it so it will continue to work with future versions.

Karabaja

6:03 pm on Sep 5, 2006 (gmt 0)

10+ Year Member



These are the lines reported as giving errors but I have no idea what I could change:

$vbulletin->userinfo = array_merge(convert_bits_to_array(&$vbulletin->userinfo['arcadeoptions'], $vbulletin->bf_misc_arcadeoptions), $vbulletin->userinfo);

$otheruser['options'] = iif($vbulletin->userinfo['userid']==$challenge['touserid'], &$challenge['fromarcadeoptions'], &$challenge['toarcadeoptions']);

$otheruser['email'] = iif($vbulletin->userinfo['userid']==$challenge['touserid'], &$challenge['fromemail'], &$challenge['toemail']);

$otheruser['username'] = iif($vbulletin->userinfo['userid']==$challenge['touserid'], &$challenge['fromusername'], &$challenge['tousername']);

jatar_k

9:36 pm on Sep 5, 2006 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



I think you can just remove the ampersands from there, those would be the references

back it up first, obviously

Karabaja

11:46 pm on Sep 5, 2006 (gmt 0)

10+ Year Member



Thank you, that worked great. Appreciate the help.