mirror of
https://github.com/php/php-src.git
synced 2026-03-29 19:52:20 +02:00
Skip correct amount of stack entries
This commit is contained in:
@@ -1584,8 +1584,9 @@ ZEND_API void zend_fetch_debug_backtrace(zval *return_value, int skip_last TSRML
|
||||
|
||||
/* skip debug_backtrace() */
|
||||
ptr = ptr->prev_execute_data;
|
||||
if (skip_last) {
|
||||
cur_arg_pos -= 2;
|
||||
if (skip_last--) {
|
||||
int arg_count = *((ulong*)(cur_arg_pos - 2));
|
||||
cur_arg_pos -= (arg_count + 2);
|
||||
frames_on_stack--;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user