Skip to content

Commit 1526406

Browse files
do not collect constants after any UCALL/FCALL
1 parent 121da2e commit 1526406

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Zend/Optimizer/pass1.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,12 @@ void zend_optimizer_pass1(zend_op_array *op_array, zend_optimizer_ctx *ctx)
264264
collect_constants = 0;
265265
break;
266266
}
267+
case ZEND_DO_UCALL:
268+
case ZEND_DO_FCALL:
269+
case ZEND_DO_FCALL_BY_NAME:
270+
/* don't collect constants after any UCALL/FCALL */
271+
collect_constants = 0;
272+
break;
267273
case ZEND_STRLEN:
268274
if (opline->op1_type == IS_CONST &&
269275
zend_optimizer_eval_strlen(&result, &ZEND_OP1_LITERAL(opline)) == SUCCESS) {

0 commit comments

Comments
 (0)