Avoid fatal error on PHP 5.2

Passing func_get_args() directly to call_user_func_array() causes a fatal error in PHP 5.2, which is fixed by first putting the results in a variable.