View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0001799 | Xdebug | Code Coverage | public | 2020-06-15 16:19 | 2023-11-30 14:48 |
Reporter | dvdoug | Assigned To | derick | ||
Priority | normal | Severity | major | Reproducibility | sometimes |
Status | acknowledged | Resolution | open | ||
Product Version | 2.9.6 | ||||
Target Version | 3.4dev | ||||
Summary | 0001799: Inconsistent output of branch/path data when running under Opcache | ||||
Description | When running under Opcache, the first run returns a full set of data. Subsequent runs do not. Specifically in the attached testcase, there are 2 entries in the function data on the first call "SomeClass->getItems" and "{main}". In the second/third/etc invocations the only entry is for "{main}" | ||||
Steps To Reproduce | With opcache.enable=1, opcache.enable_cli=1 SomeClass.php class SomeClass } Test script (please run twice) print_r(xdebug_get_code_coverage()); | ||||
Additional Information | This minimal testcase does not include a call to the method, but this reproduces for me even if you do | ||||
Tags | No tags attached. | ||||
Operating System | Windows 10 | ||||
PHP Version | 7.4.0-7.4.4 | ||||
|
Hi! I have now finally sat down to have a good look at this, as well as some The good news is that this fixes the problem, and several related parts. The bad news is that this makes code coverage twice as slow. This is likely because there are now more data structures, and hence memory I therefore don't want to merge this branch yet, and I'm moving the target cheers, |
Date Modified | Username | Field | Change |
---|---|---|---|
2020-06-15 16:19 | dvdoug | New Issue | |
2020-06-19 15:13 | derick | Assigned To | => derick |
2020-06-19 15:13 | derick | Status | new => acknowledged |
2021-03-17 08:52 | derick | Target Version | => 3.1dev |
2021-08-26 17:00 | derick | Target Version | 3.1dev => 3.2dev |
2021-08-26 17:00 | derick | Note Added: 0005992 | |
2021-08-26 17:03 | derick | Note Edited: 0005992 | |
2022-06-06 15:27 | derick | Target Version | 3.2dev => 3.3dev |
2023-11-03 11:21 | derick | Relationship added | has duplicate 0001674 |
2023-11-30 14:48 | derick | Target Version | 3.3dev => 3.4dev |