Bug #66985 [NEW]: Some timezones are no longer valid in PHP 5.5.10

From: Date: Sun, 30 Mar 2014 20:13:50 +0000
Subject: Bug #66985 [NEW]: Some timezones are no longer valid in PHP 5.5.10
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-184968@lists.php.net to get a copy of this message
From: evert at rooftopsolutions dot nl Operating system: Any PHP version: 5.5.10 Package: Date/time related Bug Type: Bug Bug description:Some timezones are no longer valid in PHP 5.5.10 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 bug report at https://bugs.php.net/bug.php?id=66985&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=66985&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=66985&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=66985&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=66985&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=66985&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=66985&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=66985&r=needscript Try newer version: https://bugs.php.net/fix.php?id=66985&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=66985&r=support Expected behavior: https://bugs.php.net/fix.php?id=66985&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=66985&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=66985&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=66985&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=66985&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=66985&r=dst IIS Stability: https://bugs.php.net/fix.php?id=66985&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=66985&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=66985&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=66985&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=66985&r=mysqlcfg

« previous php.bugs (#184968) next »