make test runner work in open source repo
[hiphop-php.git] / hphp / test / zend / bad / ext-date / strftime_error.php
blob7c671192d2fbe0cb186164e73d8bc9b859f18676
1 <?php
2 /* Prototype : string strftime(string format [, int timestamp])
3 * Description: Format a local time/date according to locale settings
4 * Source code: ext/date/php_date.c
5 * Alias to functions:
6 */
8 echo "*** Testing strftime() : error conditions ***\n";
10 date_default_timezone_set("Asia/Calcutta");
11 //Test strftime with one more than the expected number of arguments
12 echo "\n-- Testing strftime() function with more than expected no. of arguments --\n";
13 $format = '%b %d %Y %H:%M:%S';
14 $timestamp = mktime(8, 8, 8, 8, 8, 2008);
15 $extra_arg = 10;
16 var_dump( strftime($format, $timestamp, $extra_arg) );
19 ===DONE===