First uppercase letter breaks date string parsing
| Bug #67109 | First uppercase letter breaks date string parsing | ||||
|---|---|---|---|---|---|
| Submitted: | 2014-04-22 08:33 UTC | Modified: | 2014-04-22 13:50 UTC | ||
| From: | velosipedist dot org at gmail dot com | Assigned: | derick (profile) | ||
| Status: | Closed | Package: | Date/time related | ||
| PHP Version: | 5.5.11 | OS: | any | ||
| Private report: | No | CVE-ID: | None | ||
[2014-04-22 08:33 UTC] velosipedist dot org at gmail dot com
Description: ------------ If i make first letter uppercase in date string "last day of this month", strtotime returns FIRST day. But same mixed-case string can be parsed correctly in unpredictable order:\ http://codepad.viper-7.com/MclUwk http://codepad.viper-7.com/ofbYag Test script: --------------- <?php assert(date('d',strtotime('last day of april')) == "30"); assert(date('d',strtotime('last Day of april')) == "30"); // will raise warning assert(date('d',strtotime('Last Day of april')) == "30");
Patches
Pull Requests
History
AllCommentsChangesGit/SVN commits
[2014-04-22 13:50 UTC] felipe@php.net
-Status: Open +Status: Assigned -Assigned To: +Assigned To: derick
[2014-08-18 19:28 UTC] derick@php.net
-Status: Assigned +Status: Closed