php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #70259 tiemzone Pacific/Auckland missing
Submitted: 2015-08-13 09:22 UTC Modified: 2015-08-16 22:00 UTC
Votes:3
Avg. Score:5.0 ± 0.0
Reproduced:3 of 3 (100.0%)
Same Version:1 (33.3%)
Same OS:1 (33.3%)
From: andy at calamedia dot de Assigned: derick (profile)
Status: Closed Package: timezonedb (PECL)
PHP Version: 5.4.44 OS:
Private report: No CVE-ID: None
 [2015-08-13 09:22 UTC] andy at calamedia dot de
Description:
------------
Creation of DateTimeZone for Pacific/Auckland causes unknown or bad timezone error

Test script:
---------------
$tz = new DateTimeZone('Pacific/Auckland');


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-08-13 09:31 UTC] andy at calamedia dot de
Used latest timezonedb 2015.6
 [2015-08-13 13:44 UTC] phpnet at legionofone dot com
The following timezones also cause errors in 2015.6:

Pacific/Apia
Pacific/Bougainville
Pacific/Chatham

Script to test:

foreach (DateTimeZone::listIdentifiers() as $zone) {
    try {
        $obj = new DateTimeZone($zone);
        echo $zone . " worked\n";
    } catch (Exception $ex) {
        echo $zone . ': ' . $ex->getMessage() . "\n";
    }
}
 [2015-08-13 17:22 UTC] phpnet at legionofone dot com
In our case 2015.6 generates the errors on PHP version 5.5.9.
 [2015-08-14 18:56 UTC] derick@php.net
-Assigned To: +Assigned To: derick
 [2015-08-16 22:00 UTC] derick@php.net
-Status: Assigned +Status: Closed
 [2015-08-16 22:00 UTC] derick@php.net
This should be fixed in both GIT master, and the PECL release 2015.6.1
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 09:01:26 2024 UTC