I was using a binary with the new timelib. Undo the datetime tests
[hiphop-php.git] / hphp / test / zend / bad / ext-date / localtime_error.php
blobf1b5479c095b8c251c39b6eb59e043e91c600494
1 <?php
2 /* Prototype : array localtime([int timestamp [, bool associative_array]])
3 * Description: Returns the results of the C system call localtime as an associative array
4 * if the associative_array argument is set to 1 other wise it is a regular array
5 * Source code: ext/date/php_date.c
6 * Alias to functions:
7 */
9 //Set the default time zone
10 date_default_timezone_set("Europe/London");
12 echo "*** Testing localtime() : error conditions ***\n";
14 echo "\n-- Testing localtime() function with more than expected no. of arguments --\n";
15 $timestamp = gmmktime(8, 8, 8, 8, 8, 2008);
16 $assoc = true;
17 $extra_arg = 10;
18 var_dump( localtime($timestamp, $assoc, $extra_arg) );
21 ===DONE===