Skip to content

Commit 93dba17

Browse files
committed
opcache: collect DECLARE_ATTRIBUTED_CONST in PASS_15 constant table
1 parent 066bcb1 commit 93dba17

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Zend/Optimizer/pass1.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,7 @@ void zend_optimizer_pass1(zend_op_array *op_array, zend_optimizer_ctx *ctx)
286286
literal_dtor(&ZEND_OP1_LITERAL(opline));
287287
replace_by_const_or_qm_assign(op_array, opline, &result);
288288
break;
289+
case ZEND_DECLARE_ATTRIBUTED_CONST:
289290
case ZEND_DECLARE_CONST:
290291
if (collect_constants &&
291292
Z_TYPE(ZEND_OP1_LITERAL(opline)) == IS_STRING &&

0 commit comments

Comments
 (0)