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

From: Date: Tue, 07 Jul 2015 21:41:27 +0000
Subject: Bug #66985 [Csd]: 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-194190@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
 Updated by:         cmb@php.net
 Reported by:        evert at rooftopsolutions dot nl
 Summary:            Some timezones are no longer valid in PHP 5.5.10
 Status:             Closed
 Type:               Bug
 Package:            Date/time related
 Operating System:   Any
 PHP Version:        5.5.10
 Assigned To:        derick
 Block user comment: N
 Private report:     N

 New Comment:

> I believe it was a trivial typo, but it's a bit confusing, so it
> would be great if somebody could fix that.

Thanks for the hint. Fixed now.


Previous Comments:
------------------------------------------------------------------------
[2014-10-15 06:49:15] gm dot outside+php at gmail dot com

As the fix went in so a minor bug in the test file (ext/date/tests/bug66985.phpt).  Although the
test file name itself properly refers to this bug (66985), the very beginning of the file refers to
bug #66986 instead.  I believe it was a trivial typo, but it's a bit confusing, so it would be
great if somebody could fix that.

------------------------------------------------------------------------
[2014-08-18 19:28:15] derick@php.net

Automatic comment on behalf of github@derickrethans.nl
Revision: http://git.php.net/?p=php-src.git;a=commit;h=2b9af967fbf12d9eb5fd74a7d6d31431307b0870
Log: Fixed bug #66985: Some timezones are no longer valid in PHP 5.5.10.

------------------------------------------------------------------------
[2014-08-17 10:12:34] derick@php.net

I have a fix in the works for this. Code works, but need some more test cases and checking for
memory leaks.

------------------------------------------------------------------------
[2014-07-20 00:43:59] rasmus@php.net

Hrm.. In my simple test it worked. It was zone_search() that was failing. With that hack this works
fine:

$tz = new DateTimeZone('EST5EDT');
echo $tz->getName()."\n";
$date = new DateTime('2000-01-01', $tz);
$date = $date->modify('+6 months');
echo $date->format('Y-m-d') . "\n";

But true, looking closer at it, $tz->getTranstitions() doesn't return anything.

------------------------------------------------------------------------
[2014-07-19 00:02:31] yohgaki@php.net

Note: JST (Japanese Standard Time) is used to work with older PHP also.

------------------------------------------------------------------------


The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

    https://bugs.php.net/bug.php?id=66985


--
Edit this bug report at https://bugs.php.net/bug.php?id=66985&edit=1


Thread (18 messages)

« previous php.bugs (#194190) next »