View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0001788 | Xdebug | Code Coverage | public | 2020-05-24 15:33 | 2020-05-28 13:03 |
Reporter | dvdoug | Assigned To | derick | ||
Priority | normal | Severity | major | Reproducibility | always |
Status | resolved | Resolution | duplicate | ||
Product Version | 2.9.5 | ||||
Summary | 0001788: Branch coverage data does not always get returned in the lines/functions format (w/Opcache) | ||||
Description | See steps to reproduce. With opcache.enable_cli=1, the data for 3.php is returned as lines only. Commenting out the call to require '2.php' makes the data come back as lines/functions as expected. With opcache turned off, the data for 3.php is always returned as lines/functions as expected. | ||||
Steps To Reproduce | 1.php xdebug_start_code_coverage(XDEBUG_CC_UNUSED | XDEBUG_CC_DEAD_CODE | XDEBUG_CC_BRANCH_CHECK); $bar = 'bar'; $class = new Baz(); print_r(xdebug_get_code_coverage()); 2.php $foo = 'bar'; 3.php class Baz
} | ||||
Additional Information | https://bugs.xdebug.org/view.php?id=1787 is similar but the way of triggering it is different so I'm reporting this as a seperate bug in case fixing one does not automatically fix the other. | ||||
Tags | No tags attached. | ||||
Operating System | |||||
PHP Version | 7.4.0-7.4.4 | ||||
Date Modified | Username | Field | Change |
---|---|---|---|
2020-05-24 15:33 | dvdoug | New Issue | |
2020-05-28 13:03 | derick | Assigned To | => derick |
2020-05-28 13:03 | derick | Status | new => resolved |
2020-05-28 13:03 | derick | Resolution | open => duplicate |
2020-05-28 13:03 | derick | Note Added: 0005419 | |
2020-05-28 13:03 | derick | Relationship added | duplicate of 0001787 |