[php-src] Issue #14046: Update compilation parameters for the intl plugin
| From: | JustHoldMyBack | Date: | Thu, 25 Apr 2024 13:37:11 +0000 |
| Subject: | [php-src] Issue #14046: Update compilation parameters for the intl plugin | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-246815@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/14046
Author: JustHoldMyBack
### Description
For the latest Release (75) ICU now requires C++17.
Currently PHP sets c++11 to the compilation parameters for intl source files and the compilation
fails with errors like:
```
In file included from /own/dep/icu/include/unicode/unistr.h:39,
from /own/tmp/php-8.3.6/ext/intl/intl_convertcpp.h:22,
from /own/tmp/php-8.3.6/ext/intl/intl_convertcpp.cpp:17:
/own/dep/icu/include/unicode/stringpiece.h:133:29: error: 'enable_if_t' in namespace
'std' does not name a template type
133 | typename = std::enable_if_t<
| ^~~~~~~~~~~
/own/dep/icu/include/unicode/stringpiece.h:133:24: note: 'std::enable_if_t' is only
available from C++14 onwards
133 | typename = std::enable_if_t<
| ^~~
/own/dep/icu/include/unicode/stringpiece.h:133:40: error: expected '>' before
'<' token
133 | typename = std::enable_if_t<
| ^
```
After changing the relevant lines in the MakeFile to c++17, compilation succeeds.
### PHP Version
PHP 8.3.6
### Operating System
Ubuntu 22.04