The SitePoint Forums have moved.

You can now find them here.
This forum is now closed to new posts, but you can browse existing content.
You can find out more information about the move and how to open a new account (if necessary) here.
If you get stuck you can get support by emailing forums@sitepoint.com

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

call_user_func() alternative help

ah, hello...
I've got a file taken from part of a forum script which was built for earlier versions of php and i keep getting

Code:

Warning: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of call_user_func(). 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 /home/n4/gvs/se314/forum.php on line 265

I haven't got access to php.ini on this server and even if i did i doubt i'd want to turn it on anyway... I'm not sure how the function even works. My understanding is that it calls other functions and passes a value or values to it...The php error says to modify the declaration but i'm clueless. The whole page is included below... Can anyone help with a re-write of the call_user_func() bit?

thanks for any help. Of course if there is something obvious that i can use as a work around you can point this out to me i'm not asking for someone to do my coding for my i just don;t follow this bit at all...
thank you..

Removing the ampersands before the variables names will safely get rid of your errors as long as you're using php5. The only questionable one is the $params variable, because it is not an object(ojects are automatically passed by reference now). If some code expects that array to get modified after that method is called, then removing the ampersand may change the behavior of the code.

You could also just use the stfu operator @ and silence the error. But php is trying to tell you that one day soon it might not work anymore.

i'm not using it. It never got rid of the errors. What i did was removed the ampersands and the errors went but as predicted before by crmalibu some stuff started going a bit nutts and wouldn't work. I'm moving the whole site over to a dedicated server soon so i'll be able to turn the option on. I'll have to have the forum section re-coded to avoid using references.

except that it's extremely costly to use.. very slow, I've even seen some pundits advising against it..

The real cost comes in debugging. If something is broken you expect some type of error. If you've turned that off in one line in one of dozens of possible files it will be rather difficult to track down.