[ext] Mirroring PHP change for call_user_func_array, see #1286