Skip to content

Commit 6032390

Browse files
committed
Optimizer: Don't propagate constants into MAKE_REF
This occurs in Zend/tests/assign_ref_error_var_handling.phpt, added in 95a0709.
1 parent 92ae59c commit 6032390

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ext/opcache/Optimizer/zend_optimizer.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,7 @@ int zend_optimizer_update_op1_const(zend_op_array *op_array,
270270
case ZEND_ASSIGN_DIM:
271271
case ZEND_RETURN_BY_REF:
272272
case ZEND_INSTANCEOF:
273+
case ZEND_MAKE_REF:
273274
return 0;
274275
case ZEND_CATCH:
275276
REQUIRES_STRING(val);

0 commit comments

Comments
 (0)