Bug #66985 [Opn]: Some timezones are no longer valid in PHP 5.5.10
| From: | evert at rooftopsolutions dot nl | Date: | Sun, 30 Mar 2014 22:25:48 +0000 |
| Subject: | Bug #66985 [Opn]: Some timezones are no longer valid in PHP 5.5.10 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-184970@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=66985&edit=1
ID: 66985
User updated by: evert at rooftopsolutions dot nl
Reported by: evert at rooftopsolutions dot nl
Summary: Some timezones are no longer valid in PHP 5.5.10
Status: Open
Type: Bug
Package: Date/time related
Operating System: Any
PHP Version: 5.5.10
Block user comment: N
Private report: N
New Comment:
Here's a full list of timezones that are not supported on PHP 5.5.10:
CST6CDT
Cuba
Egypt
Eire
EST5EDT
Factory
GB-Eire
GMT0
Greenwich
Hongkong
Iceland
Iran
Israel
Jamaica
Japan
Kwajalein
Libya
MST7MDT
Navajo
NZ-CHAT
Poland
Portugal
PST8PDT
Singapore
Turkey
Universal
W-SU
Previous Comments:
------------------------------------------------------------------------
[2014-03-30 20:13:50] evert at rooftopsolutions dot nl
Description:
------------
Sample code attached. Note that this worked before 5.5.10.
Perhaps I took advantage of a feature that was not supposed to be supported, in which case I would
definitely appreciate a workaround that works pre and post 5.5.10 :)
Test script:
---------------
php -r "echo (new DateTimeZone('EST5EDT'))->getName();";
Expected result:
----------------
EST5EDT
Actual result:
--------------
Fatal error: Uncaught exception 'Exception' with message
'DateTimeZone::__construct(): Unknown or bad timezone (EST5EDT)' in Command line code on
line 1
Exception: DateTimeZone::__construct(): Unknown or bad timezone (EST5EDT) in Command line code on
line 1
Call Stack:
0.0001 221064 1. {main}() Command line code:0
0.0001 221296 2. DateTimeZone->__construct() Command line code:1
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=66985&edit=1