[php-src] PR #15678: ICU 75.1 requires C++17
| From: | cmb69 | Date: | Sat, 31 Aug 2024 11:21:46 +0000 |
| Subject: | [php-src] PR #15678: ICU 75.1 requires C++17 | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-28316@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/15678
Author: cmb69
This needs to be explicitly enabled for MSVC (and probably clang on Windows); otherwise the default
is C++14, which is no longer sufficient for ICU[1].
While the official PHP 8.4 builds for Windows do not yet use ICU 75.1, that may change[2]. And even
if not, it would be nice for custom builds to be able to build against ICU 75.1 (or later).
Anyhow, using
std:c++17 is fine for ICU 72.1 which we are currently using (and likely
for some older ICU versions).
[1] <https://github.com/unicode-org/icu/releases/tag/release-75-1>
[2] <https://github.com/winlibs/icu4c/pulls>
---
It seems that this is already catered to in ext/intl/config.m4 for other platforms. And maybe it
would be better to enable the flag on Windows conditionally, depending on the ICU version (would
likely need a GREP_HEADER() check).