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-09 00:00:00 WET 15Thursday, 01-Jan-09 00:00:00 WET 16