bug63391.phpt 464 B

1234567891011121314151617181920
  1. --TEST--
  2. Test for #63391 (Incorrect/inconsistent day of week prior to the year 1600)
  3. --FILE--
  4. <?php
  5. ini_set('date.timezone', 'UTC');
  6. print "Date PHP\n";
  7. print "---------- ---\n";
  8. $dates = array('1599-12-30', '1599-12-31', '1600-01-01', '1600-01-02');
  9. foreach ($dates as $date) {
  10. echo date_create($date)->format('Y-m-d D'), "\n";
  11. }
  12. ?>
  13. --EXPECT--
  14. Date PHP
  15. ---------- ---
  16. 1599-12-30 Thu
  17. 1599-12-31 Fri
  18. 1600-01-01 Sat
  19. 1600-01-02 Sun