ID: 28024
Comment by: toro at equillia dot com
Reported By: lars at jvinformatik dot com
Status: Assigned
Bug Type: Date/time related
Operating System: Linux
PHP Version: 4CVS, 5CVS (2004-04-16)
Assigned To: derick
New Comment:
I found that the behaviour changed between 4.3.5 and 4.3.6. So
strtotime worked one way in 4.3.5 and when I upgraded to 4.3.6 the
behaviour changed. As mentioned above it is just matter of rearranging
the string that is passed to strtotime to get the same result.
If it is decided to do something about this then I guess as long as any
changes incorporate the new behaviour as well as the old behaviour then
the changes won't effect people who are accustom to the new behaviour.
Previous Comments:
------------------------------------------------------------------------
[2004-04-16 16:33:32] [EMAIL PROTECTED]
Will have a look at this one too.
------------------------------------------------------------------------
[2004-04-16 15:06:20] [EMAIL PROTECTED]
Indeed.
------------------------------------------------------------------------
[2004-04-16 10:30:57] 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.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=28024&edit=1