View Issue Details

IDProjectCategoryView StatusLast Update
0000562XdebugUsage problems (Wrong Results)public2010-04-13 19:18
ReporterkoreAssigned To 
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version2.1.0RC1 
Target VersionFixed in Version 
Summary0000562: Incorrect coverage information for closure function headers
DescriptionClosure function headers are flagged as executable, but not covered (in PHPUnit coverage reports), even if they were executed.
Additional InformationReproducing 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)