]> granicus.if.org Git - php/commitdiff
timelib now have a function for this, use it
authorRemi Collet <remi@php.net>
Tue, 22 Aug 2017 10:55:13 +0000 (12:55 +0200)
committerRemi Collet <remi@php.net>
Tue, 22 Aug 2017 10:55:13 +0000 (12:55 +0200)
ext/date/php_date.c

index 0277297e9f2fa196938f067a56d668de575cff28..dd90ba3ad54728053b83b1174b28bb397652a8db 100644 (file)
@@ -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);