Skip to content

Commit 1415b53

Browse files
committed
Enable evaluation of constant functions with 3 arguments
1 parent ab367de commit 1415b53

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/opcache/Optimizer/sccp.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1035,8 +1035,8 @@ static void sccp_visit_instr(scdf_ctx *scdf, zend_op *opline, zend_ssa_op *ssa_o
10351035
break;
10361036
}
10371037

1038-
/* We're only interested in functions with one or two arguments right now */
1039-
if (call->num_args == 0 || call->num_args > 2) {
1038+
/* We're only interested in functions with one, two or three arguments right now */
1039+
if (call->num_args == 0 || call->num_args > 3) {
10401040
SET_RESULT_BOT(result);
10411041
break;
10421042
}

0 commit comments

Comments
 (0)