View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0001601 | Xdebug | Code Coverage | public | 2019-01-03 13:49 | 2019-01-23 10:45 |
Reporter | exussum | Assigned To | derick | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | no change required | ||
Platform | Linux | OS | Ubuntu 18.04 | ||
Product Version | 2.6.1 | ||||
Summary | 0001601: Line shown as covered when not been run | ||||
Description | Line shown as covered when not been run | ||||
Steps To Reproduce | <?php function test() { xdebug_start_code_coverage(XDEBUG_CC_UNUSED | XDEBUG_CC_DEAD_CODE); The catch line (line 9) is shown as covered, when its not. | ||||
Additional Information | Running the above script line 9 should show as -1, its showing as 1 I get the following. /tmp/test.php:17: xdebug 2.6.1 on php 5.6 works as expected,m it seems 7.0+ has this error | ||||
Tags | No tags attached. | ||||
Attached Files | |||||
Operating System | |||||
PHP Version | 7.2.5-7.2.9 | ||||
|
Done some more checking, the if can be removed, its the loop and the catch which causes this |
|
Sorry can be closed just found the fix in PHP |
|
Ah, great, as I could not reproduce this with PHP 7.2.14 and Xdebug 2.6.1 (or 2.7.0dev). Could you be so kind to link to the PHP issue perhaps? |
|
Sorry I never attached as it was you who reported. https://bugs.php.net/bug.php?id=76046 after an update of PHP all works Thanks |
|
Ah, okay :-) Thanks for confirming that. I'll close this report then. |
Date Modified | Username | Field | Change |
---|---|---|---|
2019-01-03 13:49 | exussum | New Issue | |
2019-01-03 13:49 | exussum | File Added: test.php | |
2019-01-03 13:50 | exussum | Note Added: 0004794 | |
2019-01-05 08:52 | exussum | Note Added: 0004795 | |
2019-01-22 22:20 | derick | Note Added: 0004830 | |
2019-01-22 22:20 | derick | Assigned To | => derick |
2019-01-22 22:20 | derick | Status | new => feedback |
2019-01-23 06:40 | exussum | Note Added: 0004838 | |
2019-01-23 06:40 | exussum | Status | feedback => assigned |
2019-01-23 10:45 | derick | Note Added: 0004840 | |
2019-01-23 10:45 | derick | Status | assigned => resolved |
2019-01-23 10:45 | derick | Resolution | open => no change required |