summaryrefslogtreecommitdiff
path: root/ext/intl/php_intl.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/intl/php_intl.c')
-rw-r--r--ext/intl/php_intl.c15
1 files changed, 11 insertions, 4 deletions
diff --git a/ext/intl/php_intl.c b/ext/intl/php_intl.c
index b97004d03f..dc028918b0 100644
--- a/ext/intl/php_intl.c
+++ b/ext/intl/php_intl.c
@@ -103,7 +103,6 @@
#include <ext/standard/info.h>
#include "php_ini.h"
-#define INTL_MODULE_VERSION PHP_INTL_VERSION
/*
* locale_get_default has a conflict since ICU also has
@@ -206,6 +205,12 @@ 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 >= 56
+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)
ZEND_END_ARG_INFO()
@@ -624,7 +629,7 @@ ZEND_END_ARG_INFO()
*
* Every user visible function must have an entry in intl_functions[].
*/
-zend_function_entry intl_functions[] = {
+static const zend_function_entry intl_functions[] = {
/* collator functions */
PHP_FE( collator_create, collator_static_1_arg )
@@ -662,6 +667,9 @@ 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 >= 56
+ PHP_FE( normalizer_get_raw_decomposition, decomposition_args )
+#endif
/* Locale functions */
PHP_NAMED_FE( locale_get_default, zif_locale_get_default, locale_0_args )
@@ -870,7 +878,7 @@ zend_module_entry intl_module_entry = {
PHP_RINIT( intl ),
PHP_RSHUTDOWN( intl ),
PHP_MINFO( intl ),
- INTL_MODULE_VERSION,
+ PHP_INTL_VERSION,
PHP_MODULE_GLOBALS(intl), /* globals descriptor */
PHP_GINIT(intl), /* globals ctor */
NULL, /* globals dtor */
@@ -1052,7 +1060,6 @@ PHP_MINFO_FUNCTION( intl )
php_info_print_table_start();
php_info_print_table_header( 2, "Internationalization support", "enabled" );
- php_info_print_table_row( 2, "version", INTL_MODULE_VERSION );
php_info_print_table_row( 2, "ICU version", U_ICU_VERSION );
#ifdef U_ICU_DATA_VERSION
php_info_print_table_row( 2, "ICU Data version", U_ICU_DATA_VERSION );