1--TEST--
2GH-7752: DateTimeZone::getTransitions() does not return enough information
3--FILE--
4<?php
5function showTransitions(string $tzid, int $from)
6{
7	$to = $from + ((2.5 * 366) * 24 * 60 * 60);
8
9	echo "{$tzid} from @{$from}-@{$to}:\n\n";
10
11	$tz = new DateTimeZone($tzid);
12	foreach ($tz->getTransitions($from, $to) as $t) {
13		printf("%12d %s %6d %s %s\n", $t['ts'], $t['time'], $t['offset'], $t['isdst'] ? "DST" : " x ", $t['abbr']);
14	}
15	echo "\n";
16}
17
18
19showTransitions('Europe/London', 1648342200);
20showTransitions('America/Los_Angeles', 1648557596); // GH Issue 7752
21showTransitions('America/Chicago', 1293861600);     // PHP Bug 81660
22showTransitions('Europe/Paris', 1645095600);        // GH Issue 8108
23?>
24--EXPECT--
25Europe/London from @1648342200-@1727398200:
26
27  1648342200 2022-03-27T00:50:00+00:00      0  x  GMT
28  1648342800 2022-03-27T01:00:00+00:00   3600 DST BST
29  1667091600 2022-10-30T01:00:00+00:00      0  x  GMT
30  1679792400 2023-03-26T01:00:00+00:00   3600 DST BST
31  1698541200 2023-10-29T01:00:00+00:00      0  x  GMT
32  1711846800 2024-03-31T01:00:00+00:00   3600 DST BST
33
34America/Los_Angeles from @1648557596-@1727613596:
35
36  1648557596 2022-03-29T12:39:56+00:00 -25200 DST PDT
37  1667725200 2022-11-06T09:00:00+00:00 -28800  x  PST
38  1678615200 2023-03-12T10:00:00+00:00 -25200 DST PDT
39  1699174800 2023-11-05T09:00:00+00:00 -28800  x  PST
40  1710064800 2024-03-10T10:00:00+00:00 -25200 DST PDT
41
42America/Chicago from @1293861600-@1372917600:
43
44  1293861600 2011-01-01T06:00:00+00:00 -21600  x  CST
45  1300003200 2011-03-13T08:00:00+00:00 -18000 DST CDT
46  1320562800 2011-11-06T07:00:00+00:00 -21600  x  CST
47  1331452800 2012-03-11T08:00:00+00:00 -18000 DST CDT
48  1352012400 2012-11-04T07:00:00+00:00 -21600  x  CST
49  1362902400 2013-03-10T08:00:00+00:00 -18000 DST CDT
50
51Europe/Paris from @1645095600-@1724151600:
52
53  1645095600 2022-02-17T11:00:00+00:00   3600  x  CET
54  1648342800 2022-03-27T01:00:00+00:00   7200 DST CEST
55  1667091600 2022-10-30T01:00:00+00:00   3600  x  CET
56  1679792400 2023-03-26T01:00:00+00:00   7200 DST CEST
57  1698541200 2023-10-29T01:00:00+00:00   3600  x  CET
58  1711846800 2024-03-31T01:00:00+00:00   7200 DST CEST
59