1
0
mirror of https://github.com/php/php-src.git synced 2026-03-27 01:32:22 +01:00
This commit is contained in:
Stanislav Malyshev
2014-08-20 14:42:48 -07:00
parent b278be894f
commit 6424bf659d

View File

@@ -1,12 +1,14 @@
--TEST--
Bug #67109 (First uppercase letter breaks date string parsing)
--INI--
date.timezone=UTC
--FILE--
<?php
var_dump(date('d.m.Y',strtotime('last day of this month')));
var_dump(date('d.m.Y',strtotime('Last day of this month')));
var_dump(date('d.m.Y',strtotime('lAst Day of This Month')));
var_dump(date('d.m.Y',strtotime('last day of april')));
var_dump(date('d.m.Y',strtotime('Last day of april')));
var_dump(date('d.m.Y',strtotime('lAst Day of April')));
?>
--EXPECT--
string(10) "31.08.2014"
string(10) "31.08.2014"
string(10) "31.08.2014"
--EXPECTF--
string(10) "30.04.%d"
string(10) "30.04.%d"
string(10) "30.04.%d"