I was using a binary with the new timelib. Undo the datetime tests
[hiphop-php.git] / hphp / test / zend / bad / ext-date / idate_error.php
blob29dd979db14fe5a72214a6686dd7838293cc44d2
1 <?php
2 /* Prototype : int idate(string format [, int timestamp])
3 * Description: Format a local time/date as integer
4 * Source code: ext/date/php_date.c
5 * Alias to functions:
6 */
8 echo "*** Testing idate() : error conditions ***\n";
10 echo "\n-- Testing idate() function with Zero arguments --\n";
11 var_dump( idate() );
13 echo "\n-- Testing idate() function with more than expected no. of arguments --\n";
14 $format = '%b %d %Y %H:%M:%S';
15 $timestamp = gmmktime(8, 8, 8, 8, 8, 2008);
16 $extra_arg = 10;
17 var_dump( idate($format, $timestamp, $extra_arg) );
20 ===DONE===