summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRemi Collet <remi@php.net>2017-08-22 12:55:13 +0200
committerRemi Collet <remi@php.net>2017-08-22 12:55:13 +0200
commitf4792750a56e02d6f385192823dd3e6f0f5a9bcc (patch)
treeae48cdc1b4b671dd784459e3f4216f15fb69ff7e
parent3fff74aab5e41195cded72ca705de015abfd710a (diff)
downloadphp-git-f4792750a56e02d6f385192823dd3e6f0f5a9bcc.tar.gz
timelib now have a function for this, use it
-rw-r--r--ext/date/php_date.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/date/php_date.c b/ext/date/php_date.c
index 0277297e9f..dd90ba3ad5 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);