Annotation of embedaddon/php/ext/date/tests/bug52063.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: Bug #52063 (DateTime constructor's second argument doesn't have a null default value)
3: --FILE--
4: <?php
5: date_default_timezone_set("Europe/Lisbon");
6: $a = new DateTime("2009-01-01", null);
7: echo $a->format(DateTime::COOKIE);
8: echo "\n";
9: $a = date_create("2009-01-01", null);
10: echo $a->format(DateTime::COOKIE);
11: echo "\n";
12: ?>
13: --EXPECTF--
14: Thursday, 01-Jan-09 00:00:00 WET
15: Thursday, 01-Jan-09 00:00:00 WET
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>