Annotation of embedaddon/php/ext/date/tests/bug35414.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: Bug #35414 (strtotime() no longer works with ordinal suffix)
3: --FILE--
4: <?php
5: date_default_timezone_set("UTC");
6:
7: echo date(DATE_ISO8601, strtotime("Sat 26th Nov 2005 18:18")) . "\n";
8: echo date(DATE_ISO8601, strtotime("26th Nov", 1134340285)) . "\n";
9: echo date(DATE_ISO8601, strtotime("Dec. 4th, 2005")) . "\n";
10: echo date(DATE_ISO8601, strtotime("December 4th, 2005")) . "\n";
11: ?>
12: --EXPECT--
13: 2005-11-26T18:18:00+0000
14: 2005-11-26T00:00:00+0000
15: 2005-12-04T00:00:00+0000
16: 2005-12-04T00:00:00+0000
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>