Re: [PHP] call_user_func_array and bind_result

2011-12-16 Thread Mari Masuda
On Dec 16, 2011, at 4:51 PM, David Harkness wrote: > Each *value* in the array must be a reference to an existing variable--they > cannot be null or direct values. [snip] Thank you very much for your explanation and example code. I was missing the fact that the *values* in the array must be

Re: [PHP] call_user_func_array and bind_result

2011-12-16 Thread David Harkness
Each *value* in the array must be a reference to an existing variable--they cannot be null or direct values. I didn't try this with bind_param(), but I create a function that takes reference arguments and got it to work with call_user_func_array(): function foo(&$x, &$y) { $x *= 2; $y *= 3; }