mirror of
https://github.com/php/php-src.git
synced 2024-12-20 07:20:33 +08:00
ded3d984c6
EXPECTF logic in run-tests.php is considerable, so let's avoid it.
16 lines
407 B
PHP
16 lines
407 B
PHP
--TEST--
|
|
Bug #52063 (DateTime constructor's second argument doesn't have a null default value)
|
|
--FILE--
|
|
<?php
|
|
date_default_timezone_set("Europe/Lisbon");
|
|
$a = new DateTime("2009-01-01", null);
|
|
echo $a->format(DateTime::COOKIE);
|
|
echo "\n";
|
|
$a = date_create("2009-01-01", null);
|
|
echo $a->format(DateTime::COOKIE);
|
|
echo "\n";
|
|
?>
|
|
--EXPECT--
|
|
Thursday, 01-Jan-2009 00:00:00 WET
|
|
Thursday, 01-Jan-2009 00:00:00 WET
|