File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / ext / date / tests / bug53879.phpt
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Sun Jun 15 20:03:42 2014 UTC (11 years ago) by misho
Branches: php, MAIN
CVS tags: v5_4_29, HEAD
php 5.4.29

--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
)

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>