summaryrefslogtreecommitdiff
path: root/ext/date/tests/big_year.phpt
blob: 1cfc5af3dd08be63a2735b529ec3adf40c1fa19e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--TEST--
Handling of large year values
--SKIPIF--
<?php echo PHP_INT_SIZE != 8 ? "skip 64-bit only" : "OK"; ?>
--FILE--
<?php
date_default_timezone_set("America/Toronto");

$t = mktime(0,0,0,1,1,292277026596); 

var_dump(date("r", $t)); 

echo "OK\n";
?>
--EXPECT--
string(39) "Fri, 01 Jan 292277026596 00:00:00 -0500"
OK