[php-src] master: ext/intl: Disable MSVC warning C4275 for ICU 78+ headers (#25160)

From: Date: Mon, 02 Nov 2026 17:52:56 +0000
Subject: [php-src] master: ext/intl: Disable MSVC warning C4275 for ICU 78+ headers (#25160)
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-143225@lists.php.net to get a copy of this message
Author: David CARLIER (devnexen) Committer: GitHub (web-flow) Pusher: devnexen Date: 2026-11-02T17:52:53Z Commit: https://github.com/php/php-src/commit/3826aa37eac0a45c49cd827c1f4f0a65265a1679 Raw diff: https://github.com/php/php-src/commit/3826aa37eac0a45c49cd827c1f4f0a65265a1679.diff ext/intl: Disable MSVC warning C4275 for ICU 78+ headers (#25160) ICU 78+ headers derive some exported classes from non-exported ones, e.g. NumberFormat from Format, which breaks the Windows build under /WX. Changed paths: M ext/intl/config.w32 Diff: diff --git a/ext/intl/config.w32 b/ext/intl/config.w32 index 93719608d46d..62cba5c3615c 100644 --- a/ext/intl/config.w32 +++ b/ext/intl/config.w32 @@ -133,7 +133,7 @@ if (PHP_INTL != "no") { CHECK_LIB("icule.lib", "intl", PHP_INTL); CHECK_LIB("iculx.lib", "intl", PHP_INTL); ADD_FLAG("CXXFLAGS_INTL", "/std:c++17 /EHsc"); - ADD_FLAG("CFLAGS_INTL", "/DUNISTR_FROM_CHAR_EXPLICIT=explicit /DUNISTR_FROM_STRING_EXPLICIT=explicit /DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 /DU_HIDE_OBSOLETE_UTF_OLD_H=1"); + ADD_FLAG("CFLAGS_INTL", "/wd4275 /DUNISTR_FROM_CHAR_EXPLICIT=explicit /DUNISTR_FROM_STRING_EXPLICIT=explicit /DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 /DU_HIDE_OBSOLETE_UTF_OLD_H=1"); } else { WARNING("intl not enabled; libraries and/or headers not found"); }

« previous php.cvs (#143225) next »