Skip to content

Commit 9f3ea20

Browse files
committed
Merge branch 'PHP-7.2' into PHP-7.3
2 parents 8209a88 + 54aa761 commit 9f3ea20

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

ext/reflection/php_reflection.c

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3176,13 +3176,11 @@ static void reflection_method_invoke(INTERNAL_FUNCTION_PARAMETERS, int variadic)
31763176
fcc.called_scope = intern->ce;
31773177
fcc.object = object ? Z_OBJ_P(object) : NULL;
31783178

3179-
if (!variadic) {
3180-
/*
3181-
* Copy the zend_function when calling via handler (e.g. Closure::__invoke())
3182-
*/
3183-
if ((mptr->internal_function.fn_flags & ZEND_ACC_CALL_VIA_TRAMPOLINE)) {
3184-
fcc.function_handler = _copy_function(mptr);
3185-
}
3179+
/*
3180+
* Copy the zend_function when calling via handler (e.g. Closure::__invoke())
3181+
*/
3182+
if ((mptr->internal_function.fn_flags & ZEND_ACC_CALL_VIA_TRAMPOLINE)) {
3183+
fcc.function_handler = _copy_function(mptr);
31863184
}
31873185

31883186
result = zend_call_function(&fci, &fcc);

0 commit comments

Comments
 (0)