xref: /php-src/ext/date/tests/bug51987.phpt (revision 78d5076b)
1--TEST--
2Bug #51987 (Datetime fails to parse an ISO 8601 ordinal date (extended format))
3--FILE--
4<?php
5date_default_timezone_set('Europe/London');
6$d2 = new Datetime('1985-102');
7var_dump($d2);
8?>
9--EXPECTF--
10object(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}
18