xref: /PHP-8.0/ext/date/tests/bug33578.phpt (revision f8d79582)
1--TEST--
2Bug #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--
1510/11/%d
1610/11/%d
1710/11/2005
1810/11/%d
1910/11/%d
2010/11/2005
2110/11/2005
22