|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #78669 timezone_abbreviations_list only lists from compiled in db, not PECL timezonedb
Submitted: 2019-10-13 23:04 UTC Modified: 2019-10-20 10:41 UTC
From: andy at asjohnson dot com Assigned: cmb (profile)
Status: Closed Package: Date/time related
PHP Version: 7.3.10 OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: andy at asjohnson dot com
New email:
PHP Version: OS:


 [2019-10-13 23:04 UTC] andy at asjohnson dot com
timezone_abbreviations_list() only lists from compiled in db, not PECL timezonedb. timezone_identifiers_list() works as expected with PECL timezonedb.

Expected result:
Expected result is timezone_abbreviations_list from PECL timezonedb. Function timezone_identifiers_list works with PECL timezonedb as expected.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2019-10-14 07:09 UTC]
-Status: Open +Status: Suspended
 [2019-10-14 07:09 UTC]
That looks like a timelib issue[1], and as such should be reported
upstream[2].  Thanks.

[1] <>
[2] <>
 [2019-10-15 18:50 UTC]
-Status: Suspended +Status: Open -Type: Bug +Type: Documentation Problem
 [2019-10-15 18:50 UTC]
I am going to mark this as a documentation issue. This function uses timelib's timelib_timezone_abbreviations_list which returns a precompiled list of timezone abbreviations for lookups for fallbacks. It is too computationally expensive to do compile this list at each call per PHP process (it takes seconds), and hence the list as returned by the PHP function uses this pre-generated list instead.

I also generally frown upon using abbreviations for any input, as these are often not unique, and/or ambiguous.

If you must have the latest version, then the best course of action is to use the latest PHP version, which will have the latest version of both the timelib library, rules, and this precompiled list.
 [2019-10-20 10:41 UTC]
Automatic comment from SVN on behalf of cmb
Log: Fix #78669: timezone_abbreviations_list only lists from compiled in db, not PECL timezonedb
 [2019-10-20 10:41 UTC]
-Status: Open +Status: Closed -Assigned To: +Assigned To: cmb
 [2019-10-20 10:41 UTC]
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.
 [2019-10-20 10:45 UTC]
Automatic comment on behalf of cmb
Log: Fix #78669: timezone_abbreviations_list only lists from compiled in db, not PECL timezonedb
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Tue Nov 19 02:01:34 2019 UTC