Skip to content

Commit 8585fed

Browse files
committed
Don't bind nodes for TMP PHP variables
1 parent c6be150 commit 8585fed

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

ext/opcache/jit/ir

Submodule ir updated 1 file

ext/opcache/jit/zend_jit_ir.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1200,7 +1200,9 @@ static void zend_jit_def_reg(zend_jit_ctx *jit, zend_jit_addr addr, ir_ref val)
12001200
}
12011201

12021202
/* Negative "var" has special meaning for IR */
1203-
val = ir_bind(&jit->ctx, -EX_NUM_TO_VAR(jit->ssa->vars[var].var), val);
1203+
if (val > 0 && jit->ssa->vars[var].var < jit->current_op_array->last_var) {
1204+
val = ir_bind(&jit->ctx, -EX_NUM_TO_VAR(jit->ssa->vars[var].var), val);
1205+
}
12041206
jit->ra[var].ref = val;
12051207

12061208
if (jit->ra[var].flags & ZREG_FORWARD) {

0 commit comments

Comments
 (0)