mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
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:
parent
39301abbe1
commit
14de058086
6 changed files with 10 additions and 11 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue