Change to call_user_func API

Some weird change, presumably a newer version of PHP, meant that the functions being called from call_user_func now take a value rather than the reference they required previously.