xref: /PHP-5.5/ext/date/tests/bug41842.phpt (revision 4b64dbb9)
1--TEST--
2Bug #41842 (Cannot create years < 0100 & negative years with date_create or new DateTime)
3--FILE--
4<?php
5date_default_timezone_set("UTC");
6
7$date = new DateTime('-2007-06-28 00:00:00');
8echo $date->format(DATE_ISO8601);
9?>
10--EXPECT--
11-2007-06-28T00:00:00+0000
12