#28024 [Asn]: Changed behavior of strtotime()

From: Date: Wed, 24 Nov 2004 08:09:11 +0000
Subject: #28024 [Asn]: Changed behavior of strtotime()
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-69395@lists.php.net to get a copy of this message
ID: 28024 Updated by: derick@php.net 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: The string parsing routines are very complex and this change was definitely not done deliberately. Previous Comments: ------------------------------------------------------------------------ [2004-11-24 02:44:26] toro at equillia dot com Sorry, I ment second paragraph. ------------------------------------------------------------------------ [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] derick@php.net Will have a look at this one too. ------------------------------------------------------------------------ [2004-04-16 15:06:20] sniper@php.net Indeed. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/28024 -- Edit this bug report at http://bugs.php.net/?id=28024&edit=1

« previous php.bugs (#69395) next »