Commit 02dab7f5efc for php.net
commit 02dab7f5efcf8a68fbfa991000c61f23b451f5d6
Author: Tim Düsterhus <tim@bastelstu.be>
Date: Mon Apr 6 15:04:58 2026 +0200
Adjust `ZEND_UNREACHABLE()` exclusion in build/Makefile.gcov
These patterns are implicitly anchored, thus we must manually handle the
`default: ZEND_UNREACHABLE();` case. Also add a comment indicating that for
future changes.
diff --git a/build/Makefile.gcov b/build/Makefile.gcov
index d24ada44b7a..0ae5a44944d 100644
--- a/build/Makefile.gcov
+++ b/build/Makefile.gcov
@@ -28,9 +28,10 @@ GCOVR_EXCLUDES = \
'ext/pcre/pcre2lib/.*' \
'ext/uri/uriparser/.*'
+# These patterns have implicit ^/$ anchors.
GCOVR_EXCLUDE_LINES_BY_PATTERNS = \
'.*\b(ZEND_PARSE_PARAMETERS_(START|END|NONE)|Z_PARAM_).*' \
- '\s*ZEND_UNREACHABLE\(\);\s*'
+ '\s*(default:\s*)?ZEND_UNREACHABLE\(\);\s*'
lcov: lcov-html