Skip to content

Commit b006c45

Browse files
committed
Do not exit to VM when setting undefined prop in constructor
1 parent 2e70a89 commit b006c45

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ext/opcache/jit/zend_jit_ir.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14971,8 +14971,9 @@ static int zend_jit_assign_obj(zend_jit_ctx *jit,
1497114971
ZEND_ASSERT(slow_inputs == IR_UNUSED);
1497214972
goto slow_path;
1497314973
}
14974+
1497414975
// Undefined property with potential magic __get()/__set() or lazy object
14975-
if (JIT_G(trigger) == ZEND_JIT_ON_HOT_TRACE) {
14976+
if (JIT_G(trigger) == ZEND_JIT_ON_HOT_TRACE && prop_type != IS_UNDEF) {
1497614977
int32_t exit_point = zend_jit_trace_get_exit_point(opline, ZEND_JIT_EXIT_TO_VM);
1497714978
const void *exit_addr = zend_jit_trace_get_exit_addr(exit_point);
1497814979

0 commit comments

Comments
 (0)