I was using a binary with the new timelib. Undo the datetime tests
[hiphop-php.git] / hphp / test / zend / bad / ext-date / checkdate_error.php
blob9833d7fb35086a82edb45f1624bf83d28fe4ba50
1 <?php
2 /* Prototype : bool checkdate ( int $month , int $day , int $year )
3 * Description: Validate a Gregorian date
4 * Source code: ext/date/php_date.c
5 * Alias to functions:
6 */
8 echo "*** Testing checkdate() : error conditions ***\n";
10 //Set the default time zone
11 date_default_timezone_set("America/Chicago");
13 $arg_0 = 1;
14 $arg_1 = 1;
15 $arg_2 = 1;
16 $extra_arg = 1;
18 echo "\n-- Testing checkdate() function with more than expected no. of arguments --\n";
19 var_dump (checkdate($arg_0, $arg_1, $arg_2, $extra_arg));
21 echo "\n-- Testing checkdate() function with less than expected no. of arguments --\n";
22 var_dump (checkdate());
23 var_dump (checkdate($arg_0));
24 var_dump (checkdate($arg_0, $arg_1));
27 ===DONE===