xref: /PHP-5.4/ext/date/tests/bug52063.phpt (revision 23ab2575)
1--TEST--
2Bug #52063 (DateTime constructor's second argument doesn't have a null default value)
3--FILE--
4<?php
5date_default_timezone_set("Europe/Lisbon");
6$a = new DateTime("2009-01-01", null);
7echo $a->format(DateTime::COOKIE);
8echo "\n";
9$a = date_create("2009-01-01", null);
10echo $a->format(DateTime::COOKIE);
11echo "\n";
12?>
13--EXPECTF--
14Thursday, 01-Jan-2009 00:00:00 WET
15Thursday, 01-Jan-2009 00:00:00 WET
16