View Issue Details

IDProjectCategoryView StatusLast Update
0000643XdebugUsage problems (Wrong Results)public2011-03-21 20:42
ReporterderickAssigned Toderick 
Status closedResolutionfixed 
Product Version2.2dev 
Target VersionFixed in Version 
Summary0000643: Profiler gets line numberes wrong
DescriptionSometimes the profiler gets line numbers wrong and shows costs at the wrong place:

derick@kossu:/tmp$ cat test.php
$a = array("testing");
derick@kossu:/tmp$ cat
function tt() {
  echo "bla";
  echo "bah";

function t1() {
  global $a;
  if (count($a) && errors_fatal($a))
    echo "ok";
  return TRUE;
derick@kossu:/tmp$ cat
function errors_fatal($a) {
  count($a) && is_array($a);
  return FALSE;
Steps To ReproduceRun with php -dxdebug.profiler_enable=1 test.php and check the profile file with kcachegrind.
TagsNo tags attached.
Operating System
PHP Version5.3.3



2011-03-21 20:42

administrator   ~0001695

Fixed in SVN for 2.1.1 and HEAD.

Issue History

Date Modified Username Field Change
2010-11-30 22:22 derick New Issue
2010-11-30 22:22 derick Status new => assigned
2010-11-30 22:22 derick Assigned To => derick
2011-03-21 20:42 derick Note Added: 0001695
2011-03-21 20:42 derick Status assigned => closed
2011-03-21 20:42 derick Resolution open => fixed
2016-07-31 12:36 derick Category Usage problems => Usage problems (Crashes)
2016-07-31 12:38 derick Category Usage problems (Crashes) => Usage problems (Wrong Results)