xref: /PHP-8.1/ext/date/tests/bug35624.phpt (revision f8d79582)
1--TEST--
2Bug #35624 (strtotime() does not handle 3 character weekdays)
3--FILE--
4<?php
5date_default_timezone_set("UTC");
6
7$days = array("monday","mon","tuesday","tue","wednesday","wed","thursday","thu","friday","fri","saturday","sat","sunday","sun");
8
9foreach ($days as $day) {
10    echo date("D", strtotime($day));
11    echo date("D", strtotime(ucfirst($day)));
12    echo "\n";
13}
14?>
15--EXPECT--
16MonMon
17MonMon
18TueTue
19TueTue
20WedWed
21WedWed
22ThuThu
23ThuThu
24FriFri
25FriFri
26SatSat
27SatSat
28SunSun
29SunSun
30