Skip to content

Commit a659d16

Browse files
committed
Merge branch 'PHP-7.3'
2 parents ac96a57 + 9f3ea20 commit a659d16

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
@@ -3146,13 +3146,11 @@ static void reflection_method_invoke(INTERNAL_FUNCTION_PARAMETERS, int variadic)
31463146
fcc.called_scope = intern->ce;
31473147
fcc.object = object ? Z_OBJ_P(object) : NULL;
31483148

3149-
if (!variadic) {
3150-
/*
3151-
* Copy the zend_function when calling via handler (e.g. Closure::__invoke())
3152-
*/
3153-
if ((mptr->internal_function.fn_flags & ZEND_ACC_CALL_VIA_TRAMPOLINE)) {
3154-
fcc.function_handler = _copy_function(mptr);
3155-
}
3149+
/*
3150+
* Copy the zend_function when calling via handler (e.g. Closure::__invoke())
3151+
*/
3152+
if ((mptr->internal_function.fn_flags & ZEND_ACC_CALL_VIA_TRAMPOLINE)) {
3153+
fcc.function_handler = _copy_function(mptr);
31563154
}
31573155

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

0 commit comments

Comments
 (0)