mirror of
https://github.com/php/php-src.git
synced 2026-04-19 05:51:02 +02:00
This reverts commit ac34648cf6.
As pointed out on GH-6783, the new format doesn't match any of
the specified formats. Previously the constant generated
Thursday, 14-Jul-2005 22:30:41 BST
which is obsolete. Now it generates
Thu, 14-Jul-2005 22:30:41 BST
which is not specified at all. The correct version would be:
Thu, 14 Jul 2005 22:30:41 BST
Reverting the change for now.
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
|