View Issue Details

IDProjectCategoryView StatusLast Update
0000562XdebugUncategorizedpublic2010-04-13 19:18
Reporterkore Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version2.1.0RC1 
Summary0000562: Incorrect coverage information for closure function headers
Description

Closure function headers are flagged as executable, but not covered (in PHPUnit coverage reports), even if they were executed.

Additional Information

Reproducing code, expected line 6 to also be covered:

<?php

xdebug_start_code_coverage();
$mapped = array_map(
// This line is flagged as executable, but not covered in PHPUnit code coverage reports
function ( $value )
{
return $value;
},
array( 23, 42 )
);

var_dump( xdebug_get_code_coverage() );
// array(1) {
// ["test.php"] => array(7) {
// [0 ] => int(1)
// [4 ] => int(1)
// [8 ] => int(1)
// [9 ] => int(1)
// [10] => int(1)
// [11] => int(1)
// [13] => int(1)
// }
// }

TagsNo tags attached.
Operating SystemLinux 2.6.32-20-generic 0000029-Ubuntu SMP x86_64 GNU/Linux
PHP Version5.3.2

Activities

derick

2010-04-13 19:18

administrator   ~0001445

Fixed in revision 3259.

Issue History

Date Modified Username Field Change
2010-04-13 09:55 kore New Issue
2010-04-13 09:55 kore Operating System => Linux 2.6.32-20-generic 0000029-Ubuntu SMP x86_64 GNU/Linux
2010-04-13 09:55 kore PHP Version => 5.3.2
2010-04-13 09:55 kore Xdebug Version => 2.1.0-dev
2010-04-13 19:18 derick Note Added: 0001445
2010-04-13 19:18 derick Status new => closed
2010-04-13 19:18 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)
2020-03-12 16:35 derick Category Usage problems (Wrong Results) => Variable Display
2020-03-12 16:38 derick Category Variable Display => Uncategorized