com php-src: Fixed frame number order: phpdbg_frame.c

From: Date: Sat, 12 Apr 2014 20:08:02 +0000
Subject: com php-src: Fixed frame number order: phpdbg_frame.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-77014@lists.php.net to get a copy of this message
Commit: 86a77317630255a254888de4437a8b060efdb863 Author: Bob Weinand <bobwei9@hotmail.com> Sat, 12 Apr 2014 22:08:02 +0200 Parents: 48bcaf2e72ac66a713996a369e05cc725ca58e69 Branches: PHP-5.6 Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=86a77317630255a254888de4437a8b060efdb863 Log: Fixed frame number order Changed paths: M phpdbg_frame.c Diff: diff --git a/phpdbg_frame.c b/phpdbg_frame.c index de02add..a235fe8 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; }

« previous php.cvs (#77014) next »