Skip to content

Commit

Permalink
Fixed issues with variables if more were sent than the function signa…
Browse files Browse the repository at this point in the history
…ture would indicate
  • Loading branch information
derickr committed Sep 27, 2015
1 parent 86346cb commit a6c5a08
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions xdebug_stack.c
Expand Up @@ -1436,8 +1436,12 @@ function_stack_entry *xdebug_add_stack_frame(zend_execute_data *zdata, zend_op_a

if (XG(collect_params)) {
#if PHP_VERSION_ID >= 70000
if (ZEND_CALL_ARG(zdata, tmp->varc+1)) {
tmp->var[tmp->varc].addr = ZEND_CALL_ARG(zdata, tmp->varc+1);
if (i < arguments_wanted) {
if (ZEND_CALL_ARG(zdata, tmp->varc+1)) {
tmp->var[tmp->varc].addr = ZEND_CALL_ARG(zdata, tmp->varc+1);
}
} else {
tmp->var[tmp->varc].addr = ZEND_CALL_VAR_NUM(zdata, zdata->func->op_array.last_var + zdata->func->op_array.T + i - arguments_wanted);
}
#else
if (p) {
Expand Down

0 comments on commit a6c5a08

Please sign in to comment.