bug35699.phpt 372 B

1234567891011121314
  1. --TEST--
  2. Bug #35699 (date() can't handle leap years before 1970)
  3. --FILE--
  4. <?php
  5. date_default_timezone_set("UTC");
  6. echo date(DATE_ISO8601, strtotime('1964-06-06')), "\n";
  7. echo date(DATE_ISO8601, strtotime('1963-06-06')), "\n";
  8. echo date(DATE_ISO8601, strtotime('1964-01-06')), "\n";
  9. ?>
  10. --EXPECT--
  11. 1964-06-06T00:00:00+0000
  12. 1963-06-06T00:00:00+0000
  13. 1964-01-06T00:00:00+0000