xref: /php-src/ext/date/tests/bug32270.phpt (revision e753493c)
1--TEST--
2Bug #32270 (strtotime/date behavior)
3--INI--
4date.timezone=America/Los_Angeles
5--FILE--
6<?php
7
8echo date("m/d/Y H:i:s T", -2145888000)."\n";
9
10echo strtotime("Jan 1 1902")."\n";
11
12echo date("m/d/Y H:i:s T", -631123200)."\n";
13
14echo strtotime("Jan 1 1950")."\n";
15
16echo date("m/d/Y H:i:s T", 946713600)."\n";
17
18echo strtotime("Jan 1 2000")."\n";
19?>
20--EXPECT--
2101/01/1902 00:00:00 PST
22-2145888000
2301/01/1950 00:00:00 PST
24-631123200
2501/01/2000 00:00:00 PST
26946713600
27