Skip to content

Commit f8ff8bb

Browse files
committed
Merge branch 'PHP-7.3' into PHP-7.4
* PHP-7.3: Consider op1 literal of FETCH_OBJ_R
2 parents c6d539a + 57ad5b3 commit f8ff8bb

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
@@ -231,6 +231,9 @@ void zend_optimizer_compact_literals(zend_op_array *op_array, zend_optimizer_ctx
231231
case ZEND_POST_DEC_OBJ:
232232
case ZEND_ISSET_ISEMPTY_PROP_OBJ:
233233
case ZEND_ASSIGN_OBJ_OP:
234+
if (opline->op1_type == IS_CONST) {
235+
LITERAL_INFO(opline->op1.constant, LITERAL_VALUE, 1);
236+
}
234237
if (opline->op2_type == IS_CONST) {
235238
LITERAL_INFO(opline->op2.constant, LITERAL_PROPERTY, 1);
236239
}

0 commit comments

Comments
 (0)