xref: /PHP-7.0/ext/date/tests/bug53879.phpt (revision fdb2709d)
1--TEST--
2Bug #53879 (DateTime::createFromFormat() fails to parse cookie expiration date)
3--INI--
4date.timezone=UTC
5--FILE--
6<?php
7$date = DateTime::createFromFormat(DateTime::COOKIE, "Mon, 21-Jan-2041 15:24:52 GMT");
8print_r($date);
9?>
10--EXPECTF--
11DateTime Object
12(
13    [date] => 2041-01-21 15:24:52.000000
14    [timezone_type] => 2
15    [timezone] => GMT
16)
17