View Issue Details

IDProjectCategoryView StatusLast Update
0000018XdebugUncategorizedpublic2003-09-25 13:53
Reportertony2001 Assigned To 
PrioritynormalSeveritytrivialReproducibilityalways
Status closedResolutionopen 
Summary0000018: Some indexes in profiling result array are broken
Description

<?
xdebug_start_profiling(XDEBUG_PROFILER_FS_NC);
class bar {
function bar () {
$this->foo ();
}
function foo () {
$temp = '';
for ($i = 0; $i < 100; $i++) {
$temp .= md5 ($i);
}
}
}

$a = new bar;
$a->foo ();

var_dump (xdebug_get_function_profile());
?>

This script will produce rather weird results:
array
'function' => 'bar'
'class' => 'bar'
'method_87eb1b2dc ' => 'public' <---- Pay attention to the index
'n_calls' => 1
'ttl_time' => 0.0024749803124
'origin' => 'user'
'level' => 0

Additional Information

I've tested it on
Win32 & PHP 4.3.3 & XDebug 1.2
Linux & PHP 4.3.4-dev & Xdebug 1.2/1.3
Linux & PHP 5.0.0-dev & Xdebug 1.2/1.3
same results everytime.
this feature disappears if md5() is commented out, so I really don't know if it belongs to PHP or XDebug, but it seems to be likely bug of XDebug...

TagsNo tags attached.
Operating SystemLinux
PHP Version5.0.0-dev

Activities

derick

2003-09-25 12:41

administrator   ~0000013

Okay, I reproduced this. Going to try to fix it now.

Derick

derick

2003-09-25 13:53

administrator   ~0000014

Fixed in CVS!

Issue History

Date Modified Username Field Change
2003-09-25 12:21 tony2001 New Issue
2003-09-25 12:41 derick Note Added: 0000013
2003-09-25 12:41 derick Status new => confirmed
2003-09-25 12:41 derick Category Debug client (console) => Usage problems
2003-09-25 13:53 derick Note Added: 0000014
2003-09-25 13:53 derick Status confirmed => closed
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)
2020-03-12 16:35 derick Category Usage problems (Wrong Results) => Variable Display
2020-03-12 16:38 derick Category Variable Display => Uncategorized