View Issue Details

IDProjectCategoryView StatusLast Update
0002150XdebugCode Coveragepublic2025-11-25 14:22
Reporterderick Assigned To 
PrioritynormalSeverityfeatureReproducibilityalways
Status newResolutionopen 
Target Version3.6dev 
Summary0002150: Collapse the two FOREACH start op codes into one to improve path/branch coverage accurateness
Description

Right now, ZEND_FE_RESET_R/RW and ZEND_FE_FETCH_R/RW are both considered having two out branches, which adds an extra path, and an extra branch while generating code coverage without any reasonable explanation for users. Explore whether this can be improved, and also how to make a test where the second (escape) out branch of FE_RESET_R/RW is taken.

TagsNo tags attached.
Operating System
PHP Version8.1.10-8.1.19

Activities

derick

2025-01-14 17:15

administrator   ~0007152

Last edited: 2025-01-14 17:19

For an explanation, see: https://derickrethans.nl/figuring-out-foreach.html and test in https://github.com/derickr/xdebug/tree/issue2150-foreach-fe-reset-phantom-jump