Commit 50ef20a4f03 for php.net

commit 50ef20a4f03ca43a33265044f7b537ab4d07151a
Author: Ilija Tovilo <ilija.tovilo@me.com>
Date:   Mon Apr 6 15:14:09 2026 +0200

    Enable gcovr --exclude-unreachable-branches and --exclude-throw-branches flags

    These are mostly useful for C++ code, i.e. ext-intl. See:
    https://gcovr.com/en/stable/faq.html#why-does-c-code-have-so-many-uncovered-branches

    Closes GH-21655

diff --git a/build/Makefile.gcov b/build/Makefile.gcov
index 0ae5a44944d..13985a93a10 100644
--- a/build/Makefile.gcov
+++ b/build/Makefile.gcov
@@ -56,14 +56,14 @@ gcovr-html:
 	@echo "Generating gcovr HTML"
 	@rm -rf gcovr_html/
 	@mkdir gcovr_html
-	gcovr -sr . -o gcovr_html/index.html --html --html-details \
+	gcovr -sr . -o gcovr_html/index.html --html --html-details --exclude-unreachable-branches --exclude-throw-branches \
 		$(foreach pattern, $(GCOVR_EXCLUDE_LINES_BY_PATTERNS), --exclude-lines-by-pattern $(pattern)) \
 		$(foreach lib, $(GCOVR_EXCLUDES), -e $(lib))

 gcovr-xml:
 	@echo "Generating gcovr XML"
 	@rm -f gcovr.xml
-	gcovr -sr . -o gcovr.xml --xml \
+	gcovr -sr . -o gcovr.xml --xml --exclude-unreachable-branches --exclude-throw-branches \
 		$(foreach pattern, $(GCOVR_EXCLUDE_LINES_BY_PATTERNS), --exclude-lines-by-pattern $(pattern)) \
 		$(foreach lib, $(GCOVR_EXCLUDES), -e $(lib))