Skip to content

Commit

Permalink
Fixed bug #1087: zend_execute_script or zend_eval_string in RINIT seg…
Browse files Browse the repository at this point in the history
…faults.
  • Loading branch information
derickr committed Nov 23, 2014
1 parent 165eee2 commit a55460a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion xdebug.c
Expand Up @@ -1588,7 +1588,9 @@ void xdebug_execute_internal(zend_execute_data *current_execute_data, struct _ze
}
}

xdebug_llist_remove(XG(stack), XDEBUG_LLIST_TAIL(XG(stack)), xdebug_stack_element_dtor);
if (XG(stack)) {
xdebug_llist_remove(XG(stack), XDEBUG_LLIST_TAIL(XG(stack)), xdebug_stack_element_dtor);
}
XG(level)--;
}

Expand Down

0 comments on commit a55460a

Please sign in to comment.