forked from php/php-src
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path008.phpt
66 lines (63 loc) · 886 Bytes
/
008.phpt
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
--TEST--
getdate() tests
--FILE--
<?php
date_default_timezone_set('UTC');
$t = mktime(0,0,0, 6, 27, 2006);
var_dump(getdate(1,1));
var_dump(getdate($t));
var_dump(getdate());
echo "Done\n";
?>
--EXPECTF--
Warning: getdate() expects at most 1 parameter, 2 given in %s on line %d
bool(false)
array(11) {
["seconds"]=>
int(0)
["minutes"]=>
int(0)
["hours"]=>
int(0)
["mday"]=>
int(27)
["wday"]=>
int(2)
["mon"]=>
int(6)
["year"]=>
int(2006)
["yday"]=>
int(177)
["weekday"]=>
string(7) "Tuesday"
["month"]=>
string(4) "June"
[0]=>
int(1151366400)
}
array(11) {
["seconds"]=>
int(%d)
["minutes"]=>
int(%d)
["hours"]=>
int(%d)
["mday"]=>
int(%d)
["wday"]=>
int(%d)
["mon"]=>
int(%d)
["year"]=>
int(%d)
["yday"]=>
int(%d)
["weekday"]=>
string(%d) "%s"
["month"]=>
string(%d) "%s"
[0]=>
int(%d)
}
Done