Commit 0f3e741b538 for php.net
commit 0f3e741b538eefb1d1ffa42dc7b13d6ecf6db660
Author: Ilija Tovilo <ilija.tovilo@me.com>
Date: Wed Apr 8 21:36:15 2026 +0200
[skip ci] Suppress opcache debugging tools in gcovr
Suppress zend_dump.c and ssa_integrity.c. Also suppress the calls to
zend_dump_op_array() and the unreached branches.
diff --git a/gcovr.cfg b/gcovr.cfg
index a8267cd6e00..7ee4cff356e 100644
--- a/gcovr.cfg
+++ b/gcovr.cfg
@@ -13,7 +13,11 @@ exclude = ext/mbstring/libmbfl/.*
exclude = ext/opcache/jit/ir/.*
exclude = ext/pcre/pcre2lib/.*
exclude = ext/uri/uriparser/.*
+exclude = Zend/Optimizer/ssa_integrity\.c
+exclude = Zend/Optimizer/zend_dump\.c
# These patterns have implicit ^/$ anchors.
exclude-lines-by-pattern = .*\b(ZEND_PARSE_PARAMETERS_(START|END|NONE)|Z_PARAM_).*
exclude-lines-by-pattern = \s*(default:\s*)?ZEND_UNREACHABLE\(\);\s*
+exclude-lines-by-pattern = \s*if \(ctx->debug_level & ZEND_DUMP_\w+\) \{\s*
+exclude-lines-by-pattern = \s*zend_dump_op_array\(.*\);\s*