Home
last modified time | relevance | path

Searched refs:checkdate (Results 1 – 9 of 9) sorted by relevance

/PHP-7.3/ext/date/tests/
H A D006.phpt2 checkdate() tests
7 var_dump(checkdate());
8 var_dump(checkdate(1,1,1));
10 var_dump(checkdate(2,29,2006));
11 var_dump(checkdate(31,6,2006));
12 var_dump(checkdate(1,1,32768));
13 var_dump(checkdate(1,1,32767));
15 var_dump(checkdate(-1,1,2006));
16 var_dump(checkdate(1,-1,2006));
17 var_dump(checkdate(1,1,-1));
[all …]
H A Dcheckdate_basic1.phpt17 var_dump( checkdate(1, 1, 2009) );
18 var_dump( checkdate(12, 31, 2009) );
19 var_dump( checkdate(7, 2, 1963) );
20 var_dump( checkdate(5, 31, 2009) );
22 var_dump( checkdate(2, 29, 2008) ); // leap year
23 var_dump( checkdate(7, 2, 1) ); // min year
24 var_dump( checkdate(7, 2, 32767) ); // max year
27 var_dump( checkdate(13, 1, 2009) );
28 var_dump( checkdate(2, 31, 2009) );
29 var_dump( checkdate(1, 32, 2009) );
[all …]
H A Dcheckdate_error.phpt2 Test checkdate() function : error conditions
5 /* Prototype : bool checkdate ( int $month , int $day , int $year )
11 echo "*** Testing checkdate() : error conditions ***\n";
22 var_dump (checkdate($arg_0, $arg_1, $arg_2, $extra_arg));
25 var_dump (checkdate());
26 var_dump (checkdate($arg_0));
27 var_dump (checkdate($arg_0, $arg_1));
32 *** Testing checkdate() : error conditions ***
34 -- Testing checkdate() function with more than expected no. of arguments --
36 Warning: checkdate() expects exactly 3 parameters, 4 given in %s on line %d
[all …]
H A Dcheckdate_variation1.phpt2 Test checkdate() function : usage variation - Passing unexpected values to first argument $month.
5 /* Prototype : bool checkdate ( int $month , int $day , int $year )
93 var_dump( checkdate($month, $day, $year) );
115 Warning: checkdate() expects parameter 1 to be int, array given in %s on line %d
120 Warning: checkdate() expects parameter 1 to be int, array given in %s on line %d
125 Warning: checkdate() expects parameter 1 to be int, array given in %s on line %d
130 Warning: checkdate() expects parameter 1 to be int, array given in %s on line %d
153 Warning: checkdate() expects parameter 1 to be int, string given in %s on line %d
158 Warning: checkdate() expects parameter 1 to be int, string given in %s on line %d
163 Warning: checkdate() expects parameter 1 to be int, string given in %s on line %d
[all …]
H A Dcheckdate_variation2.phpt2 Test checkdate() function : usage variation - Passing unexpected values to second argument $day.
5 /* Prototype : bool checkdate ( int $month , int $day , int $year )
93 var_dump( checkdate($month, $day, $year) );
115 Warning: checkdate() expects parameter 2 to be int, array given in %s on line %d
120 Warning: checkdate() expects parameter 2 to be int, array given in %s on line %d
125 Warning: checkdate() expects parameter 2 to be int, array given in %s on line %d
130 Warning: checkdate() expects parameter 2 to be int, array given in %s on line %d
153 Warning: checkdate() expects parameter 2 to be int, string given in %s on line %d
158 Warning: checkdate() expects parameter 2 to be int, string given in %s on line %d
163 Warning: checkdate() expects parameter 2 to be int, string given in %s on line %d
[all …]
H A Dcheckdate_variation3.phpt2 Test checkdate() function : usage variation - Passing unexpected values to third argument $year.
5 /* Prototype : bool checkdate ( int $month , int $day , int $year )
93 var_dump( checkdate($month, $day, $year) );
115 Warning: checkdate() expects parameter 3 to be int, array given in %s on line %d
120 Warning: checkdate() expects parameter 3 to be int, array given in %s on line %d
125 Warning: checkdate() expects parameter 3 to be int, array given in %s on line %d
130 Warning: checkdate() expects parameter 3 to be int, array given in %s on line %d
153 Warning: checkdate() expects parameter 3 to be int, string given in %s on line %d
158 Warning: checkdate() expects parameter 3 to be int, string given in %s on line %d
163 Warning: checkdate() expects parameter 3 to be int, string given in %s on line %d
[all …]
H A Ddate_error.phpt23 var_dump (checkdate($format, $timestamp, $extra_arg));
37 Warning: checkdate() expects parameter 1 to be int, string given in %s on line %d
/PHP-7.3/ext/date/
H A Dphp_date.h39 PHP_FUNCTION(checkdate);
H A Dphp_date.c427 PHP_FE(checkdate, arginfo_checkdate)
1657 PHP_FUNCTION(checkdate) in PHP_FUNCTION() argument

Completed in 46 milliseconds