]> granicus.if.org Git - php/commitdiff
Fixed frame numbering in xml output
authorBob Weinand <bobwei9@hotmail.com>
Thu, 23 Oct 2014 10:38:35 +0000 (12:38 +0200)
committerBob Weinand <bobwei9@hotmail.com>
Thu, 23 Oct 2014 10:38:35 +0000 (12:38 +0200)
phpdbg_frame.c

index 8baaf771906eb09730db3f7d55556420d7f2d4ea..df304e3541131b82ff46790916112b18401061ec 100644 (file)
@@ -225,10 +225,11 @@ void phpdbg_dump_backtrace(size_t num TSRMLS_DC) /* {{{ */
                }
 
                if (user_defined == SUCCESS) {
-                       phpdbg_out("frame #%d: ", i++);
+                       phpdbg_out("frame #%d: ", i);
                        phpdbg_xml("<frame %r id=\"%d\" file=\"%s\" line=\"%d\"", i, Z_STRVAL_PP(file), Z_LVAL_PP(line));
                        phpdbg_dump_prototype(tmp TSRMLS_CC);
                        phpdbg_out(" at %s:%ld\n", Z_STRVAL_PP(file), Z_LVAL_PP(line));
+                       i++;
                } else {
                        phpdbg_out(" => ");
                        phpdbg_xml("<frame %r id=\"%d\" internal=\"internal\"", i);