diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2011-01-05 14:41:50 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2011-01-05 14:41:50 +0000 |
commit | 6f66356d560e2d63334d95d9fe71a8225377e4af (patch) | |
tree | d4838802a3c7de0656b1ad689594d333caed27e1 /ext/date | |
parent | df344ea7d659f4e357d8d9315c63d725a0a23f4d (diff) | |
download | php-git-6f66356d560e2d63334d95d9fe71a8225377e4af.tar.gz |
Added test
Diffstat (limited to 'ext/date')
-rw-r--r-- | ext/date/tests/big_year.phpt | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/ext/date/tests/big_year.phpt b/ext/date/tests/big_year.phpt new file mode 100644 index 0000000000..a15a093de0 --- /dev/null +++ b/ext/date/tests/big_year.phpt @@ -0,0 +1,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(36) "Fri, 01 Jan 219250468 00:00:00 -0500" +OK |