mirror of
https://github.com/php/php-src.git
synced 2024-12-20 15:30:38 +08:00
ded3d984c6
EXPECTF logic in run-tests.php is considerable, so let's avoid it.
17 lines
355 B
PHP
17 lines
355 B
PHP
--TEST--
|
|
Bug #53879 (DateTime::createFromFormat() fails to parse cookie expiration date)
|
|
--INI--
|
|
date.timezone=UTC
|
|
--FILE--
|
|
<?php
|
|
$date = DateTime::createFromFormat(DateTime::COOKIE, "Mon, 21-Jan-2041 15:24:52 GMT");
|
|
print_r($date);
|
|
?>
|
|
--EXPECT--
|
|
DateTime Object
|
|
(
|
|
[date] => 2041-01-21 15:24:52.000000
|
|
[timezone_type] => 2
|
|
[timezone] => GMT
|
|
)
|