summaryrefslogtreecommitdiff
path: root/ext/intl/php_intl.c
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2018-04-05 18:08:49 +0200
committerAnatol Belski <ab@php.net>2018-04-05 18:08:49 +0200
commit13a5020f98006502592709149c14a31c52fa5b60 (patch)
tree18fe4f02ecdfb6a01cfb5cfae0d83c42dd8a2547 /ext/intl/php_intl.c
parent9a8e7b571896f39f83cb000fdb7c466b6d328d52 (diff)
downloadphp-git-13a5020f98006502592709149c14a31c52fa5b60.tar.gz
Check feature availability as ICU < 49 is still supported
Diffstat (limited to 'ext/intl/php_intl.c')
-rw-r--r--ext/intl/php_intl.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/intl/php_intl.c b/ext/intl/php_intl.c
index 0afc96b081..9b52abc6fb 100644
--- a/ext/intl/php_intl.c
+++ b/ext/intl/php_intl.c
@@ -206,9 +206,11 @@ ZEND_BEGIN_ARG_INFO_EX(normalizer_args, 0, 0, 1)
ZEND_ARG_INFO(0, form)
ZEND_END_ARG_INFO()
+#if U_ICU_VERSION_MAJOR_NUM >= 49
ZEND_BEGIN_ARG_INFO_EX(decomposition_args, 0, 0, 1)
ZEND_ARG_INFO(0, input)
ZEND_END_ARG_INFO();
+#endif
ZEND_BEGIN_ARG_INFO_EX(grapheme_1_arg, 0, 0, 1)
ZEND_ARG_INFO(0, string)
@@ -666,7 +668,9 @@ static const zend_function_entry intl_functions[] = {
/* normalizer functions */
PHP_FE( normalizer_normalize, normalizer_args )
PHP_FE( normalizer_is_normalized, normalizer_args )
+#if U_ICU_VERSION_MAJOR_NUM >= 49
PHP_FE( normalizer_get_raw_decomposition, decomposition_args )
+#endif
/* Locale functions */
PHP_NAMED_FE( locale_get_default, zif_locale_get_default, locale_0_args )