View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0002095 | Xdebug | Code Coverage | public | 2022-05-17 13:22 | 2022-05-25 15:34 |
| Reporter | bradkent | Assigned To | |||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | resolved | Resolution | no change required | ||
| Product Version | 3.1.3 | ||||
| Summary | 0002095: code coverage misses } elseif (\in_array()) { | ||||
| Description | combinations of "elseif" vs "else if" and "in_array" vs "\in_array" produce different results | ||||
| Steps To Reproduce | hit: hit: not hit | ||||
| Tags | No tags attached. | ||||
| Operating System | osx 10.14.6 | ||||
| PHP Version | 8.1.0-8.1.4 | ||||
|
|
Can you provide a full parseable file please? |
|
|
Also a hit : so it's only when the array is defined "inline" |
|
|
<?php |
|
|
This is turning out to be a "bug" in PHP itself, where it does not generate appropriate EXT_STMT hook points for |
|
|
As there is nothing for me to do here on the Xdebug side, now the fix has made it into PHP RCs, and will make it into the upcoming releases (php-8.1.7 and php-8.0.20), I am closing this out. Thanks for the report. |
|
|
thanks derick! |