1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

ci: enable _GLIBCXX_ASSERTIONS c++ flags on debug builds. (#19497)

Enable additional C++ runtime checks for the intl extensions.
Basically, out-of-bounds accesses on vector or strings, undefined
behavior on iterators.
This commit is contained in:
David CARLIER
2025-08-16 13:51:30 +01:00
committed by GitHub
parent 092127cf25
commit 9b30788f8c

View File

@@ -112,6 +112,7 @@ jobs:
with:
configurationParameters: >-
--${{ matrix.debug && 'enable' || 'disable' }}-debug
${{ matrix.debug && 'CXXFLAGS="-D_GLIBCXX_ASSERTIONS"' || '' }}
--${{ matrix.zts && 'enable' || 'disable' }}-zts
${{ matrix.asan && 'CFLAGS="-fsanitize=undefined,address -fno-sanitize=function -DZEND_TRACK_ARENA_ALLOC" LDFLAGS="-fsanitize=undefined,address -fno-sanitize=function" CC=clang CXX=clang++' || '' }}
skipSlow: ${{ matrix.asan }}