1
0
mirror of https://github.com/php/php-src.git synced 2026-04-19 14:01:01 +02:00
Files
archived-php-src/ext/date/tests/bug53879.phpt
Michael Wallner c59f3184a3 fix test
2013-12-12 12:08:50 +01:00

17 lines
349 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);
?>
--EXPECTF--
DateTime Object
(
[date] => 2041-01-21 15:24:52
[timezone_type] => 2
[timezone] => GMT
)