Skip to content

Commit

Permalink
PHP 7 also puts internal functions in current_execute_data frames, so…
Browse files Browse the repository at this point in the history
… skip to a user-defined function
  • Loading branch information
derickr committed Sep 19, 2015
1 parent 9037e0a commit 6e620c2
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion xdebug_stack.c
Expand Up @@ -123,7 +123,16 @@ static void dump_used_var_with_contents(void *htmlq, xdebug_hash_element* he, vo

tmp_ht = XG(active_symbol_table);
#if PHP_VERSION_ID >= 70000
XG(active_symbol_table) = EG(current_execute_data)->symbol_table;
{
zend_execute_data *ex = EG(current_execute_data);
while (ex && (!ex->func || !ZEND_USER_CODE(ex->func->type))) {
ex = ex->prev_execute_data;
}
if (ex) {
XG(active_execute_data) = ex;
XG(active_symbol_table) = ex->symbol_table;
}
}
#else
XG(active_symbol_table) = EG(active_symbol_table);
#endif
Expand Down

0 comments on commit 6e620c2

Please sign in to comment.