Annotation of embedaddon/php/ext/date/tests/bug33578.phpt, revision 1.1

1.1     ! misho       1: --TEST--
        !             2: Bug #33578 (strtotime() doesn't parse "11 Oct" format")
        !             3: --FILE--
        !             4: <?php
        !             5:        date_default_timezone_set("UTC");
        !             6:        echo date('m/d/Y', strtotime('Oct 11')), "\n";
        !             7:        echo date('m/d/Y', strtotime('11 Oct')), "\n";
        !             8:        echo date('m/d/Y', strtotime('11 Oct 2005')), "\n";
        !             9:        echo date('m/d/Y', strtotime('Oct11')), "\n";
        !            10:        echo date('m/d/Y', strtotime('11Oct')), "\n";
        !            11:        echo date('m/d/Y', strtotime('11Oct 2005')), "\n";
        !            12:        echo date('m/d/Y', strtotime('11Oct2005')), "\n";
        !            13: ?>
        !            14: --EXPECTF--
        !            15: 10/11/%d
        !            16: 10/11/%d
        !            17: 10/11/2005
        !            18: 10/11/%d
        !            19: 10/11/%d
        !            20: 10/11/2005
        !            21: 10/11/2005

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