1
0
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:
Marcus Boerger
2004-04-25 11:28:46 +00:00
parent c5abb9b24c
commit 5fff6fa361

View File

@@ -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--;
}