diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2011-06-01 16:26:21 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2011-06-01 16:26:21 +0000 |
commit | ccd3633b5c8c19cbab0712c03c65ff183680cab0 (patch) | |
tree | 32235a0bca8f24e9914c43175fa821b38849648a /ext/intl/php_intl.c | |
parent | 8083c1ab893e62e5b99b48308bb44e65c25dd03c (diff) | |
download | php-git-ccd3633b5c8c19cbab0712c03c65ff183680cab0.tar.gz |
Implemented FR #54561 (Expose ICU Version & ICU Data Version info).
Diffstat (limited to 'ext/intl/php_intl.c')
-rwxr-xr-x | ext/intl/php_intl.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/intl/php_intl.c b/ext/intl/php_intl.c index ab5640486d..fa328cc5af 100755 --- a/ext/intl/php_intl.c +++ b/ext/intl/php_intl.c @@ -590,6 +590,10 @@ PHP_MINIT_FUNCTION( intl ) REGISTER_INI_ENTRIES(); REGISTER_LONG_CONSTANT("INTL_MAX_LOCALE_LEN", INTL_MAX_LOCALE_LEN, CONST_CS); + REGISTER_STRING_CONSTANT("INTL_ICU_VERSION", U_ICU_VERSION, CONST_PERSISTENT | CONST_CS); +#ifdef U_ICU_DATA_VERSION + REGISTER_STRING_CONSTANT("INTL_ICU_DATA_VERSION", U_ICU_DATA_VERSION, CONST_PERSISTENT | CONST_CS); +#endif /* Register 'Collator' PHP class */ collator_register_Collator_class( TSRMLS_C ); |