bug52063.phpt 407 B

123456789101112131415
  1. --TEST--
  2. Bug #52063 (DateTime constructor's second argument doesn't have a null default value)
  3. --FILE--
  4. <?php
  5. date_default_timezone_set("Europe/Lisbon");
  6. $a = new DateTime("2009-01-01", null);
  7. echo $a->format(DateTime::COOKIE);
  8. echo "\n";
  9. $a = date_create("2009-01-01", null);
  10. echo $a->format(DateTime::COOKIE);
  11. echo "\n";
  12. ?>
  13. --EXPECT--
  14. Thursday, 01-Jan-2009 00:00:00 WET
  15. Thursday, 01-Jan-2009 00:00:00 WET