I was using a binary with the new timelib. Undo the datetime tests
[hiphop-php.git] / hphp / test / zend / bad / ext-date / DateTime_construct_error.php
blob705ba95b2ed03fdac82e4b30b1e42af13b27e077
1 <?php
2 /* Prototype : DateTime::__construct ([ string $time="now" [, DateTimeZone $timezone=NULL ]] )
3 * Description: Returns new DateTime object
4 * Source code: ext/date/php_date.c
5 * Alias to functions:
6 */
7 //Set the default time zone
8 date_default_timezone_set("GMT");
10 echo "*** Testing date_create() : error conditions ***\n";
12 echo "\n-- Testing new DateTime() with more than expected no. of arguments --\n";
13 $time = "GMT";
14 $timezone = timezone_open("GMT");
15 $extra_arg = 99;
16 var_dump( new DateTime($time, $timezone, $extra_arg) );
19 ===DONE===