Skip to content

Commit 78034b7

Browse files
krakjoenikic
authored andcommitted
ws
1 parent eb91c5a commit 78034b7

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
@@ -755,13 +755,13 @@ void zend_closure_from_frame(zval *return_value, zend_execute_data *call) { /* {
755755
}
756756

757757
if (mptr->common.fn_flags & ZEND_ACC_CALL_VIA_TRAMPOLINE) {
758-
if (ZEND_CALL_INFO(call) & ZEND_CALL_HAS_THIS && Z_OBJCE(call->This) == zend_ce_closure
759-
&& zend_string_equals_literal(mptr->common.function_name, "__invoke")) {
758+
if ((ZEND_CALL_INFO(call) & ZEND_CALL_HAS_THIS) &&
759+
(Z_OBJCE(call->This) == zend_ce_closure)
760+
&& zend_string_equals_literal(mptr->common.function_name, "__invoke")) {
760761
zend_free_trampoline(mptr);
761762
RETURN_OBJ_COPY(Z_OBJ(call->This));
762763
}
763-
764-
764+
765765
memset(&trampoline, 0, sizeof(zend_internal_function));
766766
trampoline.type = ZEND_INTERNAL_FUNCTION;
767767
trampoline.fn_flags = mptr->common.fn_flags & ZEND_ACC_STATIC;

0 commit comments

Comments
 (0)