Call info should be removed, but at least we should prevent incorrect stack adjustment.

This commit is contained in:
Dmitry Stogov 2017-07-06 23:03:41 +03:00
parent 1ee9110b35
commit 2e5e03b673

View file

@ -1293,6 +1293,9 @@ static int replace_constant_operands(sccp_ctx *ctx) {
&ssa->ops[call->arg_info[i].opline - op_array->opcodes]);
}
removed_ops = call->num_args + 2;
// TODO: remove call_info completely???
call->callee_func = NULL;
} else {
/* Ordinary computational instruction -> remove it */
zend_ssa_remove_result_def(ssa, ssa_op);