PHP :: Bug #28024 :: Changed behavior of strtotime()
| Bug #28024 | Changed behavior of strtotime() | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Submitted: | 2004-04-16 10:30 UTC | Modified: | 2005-06-18 21:35 UTC |
|
||||||||||
| From: | lars at jvinformatik dot com | Assigned: | derick (profile) | |||||||||||
| Status: | Closed | Package: | Date/time related | |||||||||||
| PHP Version: | 5CVS, 4CVS (2004-04-16) | OS: | Linux | |||||||||||
| Private report: | No | CVE-ID: | None | |||||||||||
[2004-04-16 10:30 UTC] lars at jvinformatik dot com
Description:
------------
The new version of strtotime fails to parse some strings that worked in previous versions.
strtotime("17:00 2004-01-01") used to return 1072972800 in PHP 4.2.0 but returns -1 in 4.3.6.
If the order of the string is reversed to "2004-01-01 17:00" it works fine in 4.3.6 so it's really not that serious, but it probably will break some old applications that use the incorrect order.
Patches
Pull Requests
History
AllCommentsChangesGit/SVN commits
[2004-04-16 16:33 UTC] derick@php.net
[2004-11-24 00:29 UTC] toro at equillia dot com
[2004-11-24 02:43 UTC] toro at equillia dot com
[2004-11-24 02:44 UTC] toro at equillia dot com
[2004-11-24 09:09 UTC] derick@php.net
[2005-06-18 21:35 UTC] derick@php.net