diff options
author | Anatol Belski <ab@php.net> | 2018-04-06 21:33:13 +0200 |
---|---|---|
committer | Anatol Belski <ab@php.net> | 2018-04-06 21:33:13 +0200 |
commit | 14de058086d76ac344fde67fc343023fc00279a9 (patch) | |
tree | ee01d1be783863a44d79faa9e06eeb84d9dfbb64 /ext/intl/normalizer/normalizer_class.c | |
parent | 39301abbe19973e60ac4dbdb1d98da77fe7dfc52 (diff) | |
download | php-git-14de058086d76ac344fde67fc343023fc00279a9.tar.gz |
Rethink conditions
Raise the requirement to ICU 56. Mixing both old and new normalizer APIs
would create too much complexity. Therefore go by the recommended ICU
version where all the normalizer API became stable. For the older ICU,
the deprecated normalizer API is used.
Diffstat (limited to 'ext/intl/normalizer/normalizer_class.c')
-rw-r--r-- | ext/intl/normalizer/normalizer_class.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/intl/normalizer/normalizer_class.c b/ext/intl/normalizer/normalizer_class.c index d6756b403b..5168b929ab 100644 --- a/ext/intl/normalizer/normalizer_class.c +++ b/ext/intl/normalizer/normalizer_class.c @@ -34,7 +34,7 @@ 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 +#if U_ICU_VERSION_MAJOR_NUM >= 56 ZEND_BEGIN_ARG_INFO_EX( decomposition_args, 0, 0, 1 ) ZEND_ARG_INFO( 0, input ) ZEND_END_ARG_INFO(); @@ -49,7 +49,7 @@ ZEND_END_ARG_INFO(); static const zend_function_entry Normalizer_class_functions[] = { ZEND_FENTRY( normalize, ZEND_FN( normalizer_normalize ), normalizer_args, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC ) ZEND_FENTRY( isNormalized, ZEND_FN( normalizer_is_normalized ), normalizer_args, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC ) -#if U_ICU_VERSION_MAJOR_NUM >= 49 +#if U_ICU_VERSION_MAJOR_NUM >= 56 ZEND_FENTRY( getRawDecomposition, ZEND_FN( normalizer_get_raw_decomposition ), decomposition_args, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC ) #endif PHP_FE_END |