View Issue Details

IDProjectCategoryView StatusLast Update
0001019Xdebug(No Category)public2014-03-05 09:36
ReporterjailsAssigned Toderick 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionnot fixable 
PlatformPCOSUbuntuOS Version12.04
Product Version2.2.3 
Target VersionFixed in Version 
Summary0001019: Wrong count of covered lines
DescriptionUsing the following code:

<?php
    xdebug_start_code_coverage(XDEBUG_CC_UNUSED | XDEBUG_CC_DEAD_CODE);
    $a = 1;
    $options = [
        'key1' => 'value1',
        'key2' => 'value2',
        'key3' => 'value3'
    ];
    print_r(xdebug_get_code_coverage());
    xdebug_stop_code_coverage();
?>

The result is:

Array
(
    [/home/jaillet/coverage_missing.php] => Array
        (
            [3] => 1
            [5] => 1
            [6] => 1
            [8] => 1
            [9] => 1
        )

)

Seems the line 4 (ie. `$options = [`) is missing.
Steps To ReproduceRunning the code in the description using PHP 5.5.7
TagsNo tags attached.
Operating SystemUbuntu
PHP Version5.5-dev

Activities

derick

2014-03-05 09:36

administrator   ~0002755

This is not something I can fix. PHP's parser in this case doesn't record that the [ is on that line unfortunately (but instead it thinks it's on the following).

Issue History

Date Modified Username Field Change
2013-12-21 18:26 jails New Issue
2014-03-05 09:36 derick Note Added: 0002755
2014-03-05 09:36 derick Status new => resolved
2014-03-05 09:36 derick Resolution open => not fixable
2014-03-05 09:36 derick Assigned To => derick
2016-07-31 12:35 derick Category Debug client (console) => debugclient (debugging tool)
2016-07-31 12:35 derick Category debugclient (debugging tool) => (No Category)