summaryrefslogtreecommitdiff
path: root/ext/intl
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2018-03-28 18:04:09 +0200
committerAnatol Belski <ab@php.net>2018-03-28 18:04:09 +0200
commit4e39968e4d81087f85d7b306363dccb8f5108178 (patch)
tree04cd618a0210378e9290c2c3d217288ab183b596 /ext/intl
parentfc6cbc3eaaa2204bace6eef1b95bd6fe7b146b67 (diff)
parent710284cbc4a54cac0a9ec4ea29a7486e0d99a33b (diff)
downloadphp-git-4e39968e4d81087f85d7b306363dccb8f5108178.tar.gz
Merge branch 'PHP-7.1' into PHP-7.2
* PHP-7.1: Fixed bug #76153 Intl compilation fails with icu4c 61.1
Diffstat (limited to 'ext/intl')
-rw-r--r--ext/intl/config.m42
-rw-r--r--ext/intl/config.w322
2 files changed, 2 insertions, 2 deletions
diff --git a/ext/intl/config.m4 b/ext/intl/config.m4
index ca2cd822f4..a496d8d70c 100644
--- a/ext/intl/config.m4
+++ b/ext/intl/config.m4
@@ -86,7 +86,7 @@ if test "$PHP_INTL" != "no"; then
breakiterator/codepointiterator_methods.cpp \
uchar/uchar.c \
idn/idn.c \
- $icu_spoof_src, $ext_shared,,$ICU_INCS -Wno-write-strings -D__STDC_LIMIT_MACROS -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1,cxx)
+ $icu_spoof_src, $ext_shared,,$ICU_INCS -Wno-write-strings -D__STDC_LIMIT_MACROS -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 $ICU_EXTRA_FLAGS,cxx)
PHP_ADD_BUILD_DIR($ext_builddir/collator)
PHP_ADD_BUILD_DIR($ext_builddir/converter)
PHP_ADD_BUILD_DIR($ext_builddir/common)
diff --git a/ext/intl/config.w32 b/ext/intl/config.w32
index 5b37d934bd..328288be3d 100644
--- a/ext/intl/config.w32
+++ b/ext/intl/config.w32
@@ -130,7 +130,7 @@ if (PHP_INTL != "no") {
ADD_FLAG("LIBS_INTL", "iculx.lib");
}
- ADD_FLAG("CFLAGS_INTL", "/EHsc");
+ ADD_FLAG("CFLAGS_INTL", "/EHsc /D U_USING_ICU_NAMESPACE=1");
AC_DEFINE("HAVE_INTL", 1, "Internationalization support enabled");
} else {
WARNING("intl not enabled; libraries and/or headers not found");