com php-src: Add TZ and Unicode versions to intl MINFO: ext/intl/php_intl.c

From: Date: Sat, 21 Oct 2017 14:17:31 +0000
Subject: com php-src: Add TZ and Unicode versions to intl MINFO: ext/intl/php_intl.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-99831@lists.php.net to get a copy of this message
Commit: ff1b1c27616e0681ab5447f362a15fa3fc53ffa9 Author: Anatol Belski <ab@php.net> Sat, 21 Oct 2017 16:17:31 +0200 Parents: 73d68ff3e0292c0f954ec3cb717918a9b4ee97a2 Branches: PHP-7.2 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=ff1b1c27616e0681ab5447f362a15fa3fc53ffa9 Log: Add TZ and Unicode versions to intl MINFO Changed paths: M ext/intl/php_intl.c Diff: diff --git a/ext/intl/php_intl.c b/ext/intl/php_intl.c index 77cb2ba..b97004d 100644 --- a/ext/intl/php_intl.c +++ b/ext/intl/php_intl.c @@ -1045,6 +1045,11 @@ PHP_RSHUTDOWN_FUNCTION( intl ) */ PHP_MINFO_FUNCTION( intl ) { +#if !UCONFIG_NO_FORMATTING + UErrorCode status = U_ZERO_ERROR; + const char *tzdata_ver = NULL; +#endif + php_info_print_table_start(); php_info_print_table_header( 2, "Internationalization support", "enabled" ); php_info_print_table_row( 2, "version", INTL_MODULE_VERSION ); @@ -1052,6 +1057,13 @@ PHP_MINFO_FUNCTION( intl ) #ifdef U_ICU_DATA_VERSION php_info_print_table_row( 2, "ICU Data version", U_ICU_DATA_VERSION ); #endif +#if !UCONFIG_NO_FORMATTING + tzdata_ver = ucal_getTZDataVersion(&status); + if (U_ZERO_ERROR == status) { + php_info_print_table_row( 2, "ICU TZData version", tzdata_ver); + } +#endif + php_info_print_table_row( 2, "ICU Unicode version", U_UNICODE_VERSION ); php_info_print_table_end(); /* For the default locale php.ini setting */

« previous php.cvs (#99831) next »