]> granicus.if.org Git - php/commitdiff
Fixed potential segfault in backtrace of internal funcs
authorBob Weinand <bobwei9@hotmail.com>
Fri, 17 Oct 2014 20:20:54 +0000 (22:20 +0200)
committerBob Weinand <bobwei9@hotmail.com>
Fri, 17 Oct 2014 20:20:54 +0000 (22:20 +0200)
phpdbg_frame.c

index 429061edf4034a5276ef7f65b711790867353e65..8baaf771906eb09730db3f7d55556420d7f2d4ea 100644 (file)
@@ -231,7 +231,7 @@ void phpdbg_dump_backtrace(size_t num TSRMLS_DC) /* {{{ */
                        phpdbg_out(" at %s:%ld\n", Z_STRVAL_PP(file), Z_LVAL_PP(line));
                } else {
                        phpdbg_out(" => ");
-                       phpdbg_xml("<frame %r id=\"%d\" internal=\"internal\"", i, Z_STRVAL_PP(file), Z_LVAL_PP(line));
+                       phpdbg_xml("<frame %r id=\"%d\" internal=\"internal\"", i);
                        phpdbg_dump_prototype(tmp TSRMLS_CC);
                        phpdbg_out(" (internal function)\n");
                }