Skip to content

Commit 18f80dd

Browse files
committed
Fix QM_ASSIGN optimization
1 parent bdc96e0 commit 18f80dd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Zend/Optimizer/block_pass.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,9 @@ static void zend_optimize_block(zend_basic_block *block, zend_op_array *op_array
290290
++(*opt_count);
291291
break;
292292
case ZEND_QM_ASSIGN:
293+
if (src < op_array->opcodes + block->start) {
294+
break;
295+
}
293296
src->result_type = IS_UNUSED;
294297
VAR_SOURCE(opline->op1) = NULL;
295298
MAKE_NOP(opline);

0 commit comments

Comments
 (0)