[imp] call_user_func?

Sheeri Kritzer sheeri.kritzer@tufts.edu
Thu Oct 24 19:45:20 2002


Hey all,

Has anyone had any experiences with the following?  We've done the change as per the PHP fix, but is there any indication of hope that the call_user_func() issue getting fixed before call-time pass-by-reference is moved from deprecated to "not being used at all"?

Context:

all three webmail boxes are now logging these errors: 

[Sat Aug 17 14:15:58 2002] [error] 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 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.  However, future versions may not support this any longer.  in
/local/usr/local/apache/htdocs/horde/imp/lib/IMP.php on line 65

this is due to a change i made to pass $imp into the server hook by reference so the hook can just set all its data in the object instead of trying it to the caller and set it there.  


unfortunately, "call-time pass-by-reference" (explicitly passing a reference from the caller) is deprecated, and the alternative (noting in the function declaration that the argument should be passed by reference) doesn't appear to work with call_user_func().  i've applied the workaround (allow_call_time_pass_reference = On in php.ini) to silence the errors, and hope that the call_user_func() issue gets fixed before call-time pass-by-reference is turned off.

-Sheeri Kritzer
Systems Administrator
University Systems Group
Tufts University
617-627-3925
sheeri.kritzer@tufts.edu