Skip to content

Commit d8d2a78

Browse files
committed
Merge branch 'PHP-7.4'
* PHP-7.4: Consider op1 literal of FETCH_OBJ_R
2 parents 9e80558 + f8ff8bb commit d8d2a78

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ext/opcache/Optimizer/compact_literals.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,9 @@ void zend_optimizer_compact_literals(zend_op_array *op_array, zend_optimizer_ctx
228228
case ZEND_POST_DEC_OBJ:
229229
case ZEND_ISSET_ISEMPTY_PROP_OBJ:
230230
case ZEND_ASSIGN_OBJ_OP:
231+
if (opline->op1_type == IS_CONST) {
232+
LITERAL_INFO(opline->op1.constant, LITERAL_VALUE, 1);
233+
}
231234
if (opline->op2_type == IS_CONST) {
232235
LITERAL_INFO(opline->op2.constant, LITERAL_PROPERTY, 1);
233236
}

0 commit comments

Comments
 (0)