summaryrefslogtreecommitdiff
path: root/phpdbg_frame.c
diff options
context:
space:
mode:
authorkrakjoe <joe.watkins@live.co.uk>2014-04-13 08:06:42 +0100
committerkrakjoe <joe.watkins@live.co.uk>2014-04-13 08:06:42 +0100
commitef86b57f3b6745d5215e1316512c108f46df8668 (patch)
tree5a7c8cf1061c0977ae1c99bce2bc49437d24319c /phpdbg_frame.c
parent2fde2ada50a00512490511349389d08ede9822f8 (diff)
parent3db29ee43960a4e164244a55b0e2a4b23a112e49 (diff)
downloadphp-git-ef86b57f3b6745d5215e1316512c108f46df8668.tar.gz
Merge branch 'master' of https://github.com/krakjoe/phpdbg into lexer
Conflicts: phpdbg_prompt.c
Diffstat (limited to 'phpdbg_frame.c')
-rw-r--r--phpdbg_frame.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/phpdbg_frame.c b/phpdbg_frame.c
index de02addc1b..a235fe8cb0 100644
--- a/phpdbg_frame.c
+++ b/phpdbg_frame.c
@@ -167,7 +167,7 @@ void phpdbg_dump_backtrace(size_t num TSRMLS_DC) /* {{{ */
zval **tmp;
zval **file, **line;
HashPosition position;
- int i = 1, limit = num;
+ int i = 0, limit = num;
int user_defined;
if (limit < 0) {
@@ -186,7 +186,7 @@ void phpdbg_dump_backtrace(size_t num TSRMLS_DC) /* {{{ */
if (zend_hash_get_current_data_ex(Z_ARRVAL(zbacktrace),
(void**)&tmp, &position) == FAILURE) {
- phpdbg_write("frame #0: {main} at %s:%ld", Z_STRVAL_PP(file), Z_LVAL_PP(line));
+ phpdbg_write("frame #%d: {main} at %s:%ld", i, Z_STRVAL_PP(file), Z_LVAL_PP(line));
break;
}