Skip to content

Commit 211f869

Browse files
krakjoenikic
authored andcommitted
ws
1 parent 3116072 commit 211f869

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Zend/zend_closures.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -787,13 +787,13 @@ void zend_closure_from_frame(zval *return_value, zend_execute_data *call) { /* {
787787
}
788788

789789
if (mptr->common.fn_flags & ZEND_ACC_CALL_VIA_TRAMPOLINE) {
790-
if (ZEND_CALL_INFO(call) & ZEND_CALL_HAS_THIS && Z_OBJCE(call->This) == zend_ce_closure
791-
&& zend_string_equals_literal(mptr->common.function_name, "__invoke")) {
790+
if ((ZEND_CALL_INFO(call) & ZEND_CALL_HAS_THIS) &&
791+
(Z_OBJCE(call->This) == zend_ce_closure)
792+
&& zend_string_equals_literal(mptr->common.function_name, "__invoke")) {
792793
zend_free_trampoline(mptr);
793794
RETURN_OBJ_COPY(Z_OBJ(call->This));
794795
}
795-
796-
796+
797797
memset(&trampoline, 0, sizeof(zend_internal_function));
798798
trampoline.type = ZEND_INTERNAL_FUNCTION;
799799
trampoline.fn_flags = mptr->common.fn_flags & ZEND_ACC_STATIC;

0 commit comments

Comments
 (0)