com php-src: timelib now have a function for this, use it: ext/date/php_date.c
| From: | Remi Collet | Date: | Tue, 22 Aug 2017 10:55:13 +0000 |
| Subject: | com php-src: timelib now have a function for this, use it: ext/date/php_date.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-99128@lists.php.net to get a copy of this message | ||
Commit: f4792750a56e02d6f385192823dd3e6f0f5a9bcc
Author: Remi Collet <remi@php.net> Tue, 22 Aug 2017 12:55:13 +0200
Parents: 3fff74aab5e41195cded72ca705de015abfd710a
Branches: PHP-7.2 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=f4792750a56e02d6f385192823dd3e6f0f5a9bcc
Log:
timelib now have a function for this, use it
Changed paths:
M ext/date/php_date.c
Diff:
diff --git a/ext/date/php_date.c b/ext/date/php_date.c
index 0277297..dd90ba3 100644
--- a/ext/date/php_date.c
+++ b/ext/date/php_date.c
@@ -4723,8 +4723,7 @@ PHP_FUNCTION(timezone_identifiers_list)
}
tzdb = DATE_TIMEZONEDB;
- item_count = tzdb->index_size;
- table = tzdb->index;
+ table = timelib_timezone_identifiers_list(tzdb, &item_count);
array_init(return_value);