View Issue Details

IDProjectCategoryView StatusLast Update
0000158XdebugUncategorizedpublic2020-03-12 17:07
Reporterjan Assigned To 
PrioritynormalSeverityfeatureReproducibilityalways
Status closedResolutionopen 
Summary0000158: Function calls from the {main} scope always have the line number 0
Description

xdebug does not record the line number of function calls made from the {main} scope.

A supposed fix for this is here:
Index: xdebug_profiler.c

RCS file: /repository/xdebug/xdebug_profiler.c,v
retrieving revision 1.30
diff -u -r1.30 xdebug_profiler.c
--- xdebug_profiler.c 22 Sep 2005 18:36:51 -0000 1.30
+++ xdebug_profiler.c 21 Oct 2005 21:24:49 -0000
@@ -130,6 +130,11 @@
xdfree(tmp_name);
tmp_name = tmp_fname;
default_lineno = 1;

  • break;
  • default:
  • default_lineno = fse->lineno;
  • break;
    }

    if (fse->prev) {

and can be viewed online, as well:
http://jan.prima.de/~jan/xdebug_profiler_patch.diff

TagsNo tags attached.
Operating SystemOSX 10.4
PHP Version5.1.0-dev

Activities

derick

2005-12-30 16:59

administrator   ~0000322

I committed your patch (with a small change) to CVS. Thanks!

Issue History

Date Modified Username Field Change
2005-10-21 22:35 jan New Issue
2005-12-30 16:59 derick Status new => closed
2005-12-30 16:59 derick Note Added: 0000322
2020-03-12 16:56 derick Severity trivial => feature
2020-03-12 17:07 derick Category Feature/Change request => Uncategorized