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:
Sorry, I ment second paragraph. Previous Comments: ------------------------------------------------------------------------ [2004-11-24 02:43:27] toro at equillia dot com I've just done a bit of testing on 4.3.9 and 4.3.5 and from what I can tell the new behaviour is a subset of the old behaviour so you can disregard the second sentence from my comment above. ------------------------------------------------------------------------ [2004-11-24 00:29:44] toro at equillia dot com 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. ------------------------------------------------------------------------ [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