summaryrefslogtreecommitdiff
path: root/ext/date
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2011-01-05 14:41:50 +0000
committerIlia Alshanetsky <iliaa@php.net>2011-01-05 14:41:50 +0000
commit6f66356d560e2d63334d95d9fe71a8225377e4af (patch)
treed4838802a3c7de0656b1ad689594d333caed27e1 /ext/date
parentdf344ea7d659f4e357d8d9315c63d725a0a23f4d (diff)
downloadphp-git-6f66356d560e2d63334d95d9fe71a8225377e4af.tar.gz
Added test
Diffstat (limited to 'ext/date')
-rw-r--r--ext/date/tests/big_year.phpt17
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