summaryrefslogtreecommitdiff
path: root/ext/date/tests/007.phpt
blob: 141e2517533b6d227a62717266e03a21760f9fbc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
--TEST--
localtime() tests
--FILE--
<?php
date_default_timezone_set('UTC');

$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