It fires out when I try to call function with argument by reference
function test(&$a) ...
through
call_user_func('test', $b);
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
call_user_funccan only pass parameters by value, not by reference. If you want to pass by reference, you need to call the function directly, or usecall_user_func_array, which accepts references (however this may not work in PHP 5.3 and beyond, depending on what part of the manual look at).