Fixed php5.2 compat issues

func_get_args() cannot be used as a function parameter