diff options
| author | Mark A. Hershberger <mah@debian.(none)> | 2009-03-25 00:36:21 -0400 |
|---|---|---|
| committer | Mark A. Hershberger <mah@debian.(none)> | 2009-03-25 00:36:21 -0400 |
| commit | d29a4fd2dd3b5d4cf6e80b602544d7b71d794e76 (patch) | |
| tree | b38e2e5c6974b9a15f103e5cf884cba9fff90ef4 /ext/date/tests/007.phpt | |
| parent | a88a88d0986a4a32288c102cdbfebd78d7e91d99 (diff) | |
| download | php-upstream/5.2.0.tar.gz | |
Imported Upstream version 5.2.0upstream/5.2.0
Diffstat (limited to 'ext/date/tests/007.phpt')
| -rw-r--r-- | ext/date/tests/007.phpt | 101 |
1 files changed, 101 insertions, 0 deletions
diff --git a/ext/date/tests/007.phpt b/ext/date/tests/007.phpt new file mode 100644 index 000000000..f0c878465 --- /dev/null +++ b/ext/date/tests/007.phpt @@ -0,0 +1,101 @@ +--TEST-- +localtime() tests +--INI-- +date.timezone=UTC +--FILE-- +<?php + +$t = mktime(0,0,0, 6, 27, 2006); +var_dump(localtime(1,1,1)); + +var_dump(localtime()); +var_dump(localtime($t)); +var_dump(localtime($t, true)); +var_dump(localtime($t, false)); + +echo "Done\n"; +?> +--EXPECTF-- +Warning: localtime() expects at most 2 parameters, 3 given in %s on line %d +bool(false) +array(9) { + [0]=> + int(%d) + [1]=> + int(%d) + [2]=> + int(%d) + [3]=> + int(%d) + [4]=> + int(%d) + [5]=> + int(%d) + [6]=> + int(%d) + [7]=> + int(%d) + [8]=> + int(%d) +} +array(9) { + [0]=> + int(0) + [1]=> + int(0) + [2]=> + int(0) + [3]=> + int(27) + [4]=> + int(5) + [5]=> + int(106) + [6]=> + int(2) + [7]=> + int(177) + [8]=> + int(0) +} +array(9) { + ["tm_sec"]=> + int(0) + ["tm_min"]=> + int(0) + ["tm_hour"]=> + int(0) + ["tm_mday"]=> + int(27) + ["tm_mon"]=> + int(5) + ["tm_year"]=> + int(106) + ["tm_wday"]=> + int(2) + ["tm_yday"]=> + int(177) + ["tm_isdst"]=> + int(0) +} +array(9) { + [0]=> + int(0) + [1]=> + int(0) + [2]=> + int(0) + [3]=> + int(27) + [4]=> + int(5) + [5]=> + int(106) + [6]=> + int(2) + [7]=> + int(177) + [8]=> + int(0) +} +Done |
