xref: /PHP-8.0/ext/date/tests/006.phpt (revision 852485d8)
1--TEST--
2checkdate() tests
3--FILE--
4<?php
5date_default_timezone_set('UTC');
6
7var_dump(checkdate(1,1,1));
8
9var_dump(checkdate(2,29,2006));
10var_dump(checkdate(31,6,2006));
11var_dump(checkdate(1,1,32768));
12var_dump(checkdate(1,1,32767));
13
14var_dump(checkdate(-1,1,2006));
15var_dump(checkdate(1,-1,2006));
16var_dump(checkdate(1,1,-1));
17
18echo "Done\n";
19?>
20--EXPECT--
21bool(true)
22bool(false)
23bool(false)
24bool(false)
25bool(true)
26bool(false)
27bool(false)
28bool(false)
29Done
30