Issue #1217840 by tim.plunkett: Use unset() instead of array_shift() to remove arguments from func_get_args().