Doc #78669 [Opn->Csd]: timezone_abbreviations_list only lists from compiled in db, not PECL timezonedb
| From: | cmb@php.net | Date: | Sun, 20 Oct 2019 10:41:36 +0000 |
| Subject: | Doc #78669 [Opn->Csd]: timezone_abbreviations_list only lists from compiled in db, not PECL timezonedb | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-17028@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=78669&edit=1
ID: 78669
Updated by: cmb@php.net
Reported by: andy at asjohnson dot com
Summary: timezone_abbreviations_list only lists from compiled
in db, not PECL timezonedb
-Status: Open
+Status: Closed
Type: Documentation Problem
Package: Date/time related
Operating System: Linux
PHP Version: 7.3.10
-Assigned To:
+Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2019-10-20 10:41:19] cmb@php.net
Automatic comment from SVN on behalf of cmb
Revision: http://svn.php.net/viewvc/?view=revision&revision=348186
Log: Fix #78669: timezone_abbreviations_list only lists from compiled in db, not PECL timezonedb
------------------------------------------------------------------------
[2019-10-15 18:50:09] derick@php.net
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-14 07:09:22] cmb@php.net
That looks like a timelib issue[1], and as such should be reported
upstream[2]. Thanks.
[1] <https://github.com/derickr/timelib/blob/a064bb55e87b008ef5e6bbf77139a815f5a23cd1/parse_date.re#L156>
[2] <https://github.com/derickr/timelib/issues>
------------------------------------------------------------------------
[2019-10-13 23:04:08] andy at asjohnson dot com
Description:
------------
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.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=78669&edit=1