I was using a binary with the new timelib. Undo the datetime tests
[hiphop-php.git] / hphp / test / zend / bad / ext-date / gmdate_error.php
blob40c0ecefa19b7c50462d7258576c634cae90c65b
1 <?php
2 /* Prototype : string gmdate(string format [, long timestamp])
3 * Description: Format a GMT date/time
4 * Source code: ext/date/php_date.c
5 * Alias to functions:
6 */
8 echo "*** Testing gmdate() : error conditions ***\n";
10 // Initialise all required variables
11 date_default_timezone_set('UTC');
12 $format = DATE_ISO8601;
13 $timestamp = mktime(8, 8, 8, 8, 8, 2008);
15 // Zero arguments
16 echo "\n-- Testing gmdate() function with Zero arguments --\n";
17 var_dump( gmdate() );
19 //Test gmdate with one more than the expected number of arguments
20 echo "\n-- Testing gmdate() function with more than expected no. of arguments --\n";
21 $extra_arg = 10;
22 var_dump( gmdate($format, $timestamp, $extra_arg) );
25 ===DONE===