bug51987.phpt 371 B

1234567891011121314151617
  1. --TEST--
  2. Bug #51987 (Datetime fails to parse an ISO 8601 ordinal date (extended format))
  3. --FILE--
  4. <?php
  5. date_default_timezone_set('Europe/London');
  6. $d2 = new Datetime('1985-102');
  7. var_dump($d2);
  8. ?>
  9. --EXPECTF--
  10. object(DateTime)#%d (%d) {
  11. ["date"]=>
  12. string(26) "1985-04-12 00:00:00.000000"
  13. ["timezone_type"]=>
  14. int(3)
  15. ["timezone"]=>
  16. string(13) "Europe/London"
  17. }