xref: /PHP-8.2/ext/date/tests/bug69336.phpt (revision 30123005)
1--TEST--
2Bug #69336 (Issues with "last day of <monthname>")
3--INI--
4date.timezone=UTC
5--FILE--
6<?php
7var_dump(date('d.m.Y',strtotime('last day of april')));
8var_dump(date('d.m.Y',strtotime('last tuesday of march 2015')));
9var_dump(date('d.m.Y',strtotime('last wednesday of march 2015')));
10var_dump(date('d.m.Y',strtotime('last wednesday of april 2015')));
11var_dump(date('d.m.Y',strtotime('last wednesday of march 2014')));
12var_dump(date('d.m.Y',strtotime('last wednesday of april 2014')));
13?>
14--EXPECTF--
15string(10) "30.04.%d"
16string(10) "31.03.2015"
17string(10) "25.03.2015"
18string(10) "29.04.2015"
19string(10) "26.03.2014"
20string(10) "30.04.2014"
21