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.
This commit is contained in:
Anatol Belski 2018-04-06 21:33:13 +02:00
parent 39301abbe1
commit 14de058086
6 changed files with 10 additions and 11 deletions

View file

@ -206,7 +206,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();
@ -668,7 +668,7 @@ 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
#if U_ICU_VERSION_MAJOR_NUM >= 56
PHP_FE( normalizer_get_raw_decomposition, decomposition_args )
#endif