Skip to content

Commit 990bac4

Browse files
committed
Merge branch 'PHP-8.0'
* PHP-8.0: Fixed memory leak
2 parents 6cd0ec7 + a17cec4 commit 990bac4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/opcache/jit/zend_jit_trace.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5743,9 +5743,9 @@ static const void *zend_jit_trace(zend_jit_trace_rec *trace_buffer, uint32_t par
57435743
&& (init_opline->opcode != ZEND_INIT_METHOD_CALL
57445744
|| init_opline->op1_type == IS_UNDEF)
57455745
&& (init_opline->opcode != ZEND_INIT_USER_CALL
5746-
|| init_opline->op2_type == IS_CONST) /* no closure */
5746+
|| (p->func && (!p->func->common.scope || (p->func->common.fn_flags & ZEND_ACC_STATIC))))
57475747
&& (init_opline->opcode != ZEND_INIT_DYNAMIC_CALL
5748-
|| init_opline->op2_type == IS_CONST) /* no closure */
5748+
|| (p->func && (!p->func->common.scope || (p->func->common.fn_flags & ZEND_ACC_STATIC))))
57495749
) {
57505750
TRACE_FRAME_SET_NO_NEED_RELEASE_THIS(call);
57515751
}

0 commit comments

Comments
 (0)