#34874 [Opn->Asn]: strtotime("<Day>",<time>) output differs from earlier PHP5 versions
| From: | tony2001@php.net | Date: | Fri, 14 Oct 2005 22:19:06 +0000 |
| Subject: | #34874 [Opn->Asn]: strtotime("<Day>",<time>) output differs from earlier PHP5 versions | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-86613@lists.php.net to get a copy of this message | ||
ID: 34874
Updated by: tony2001@php.net
Reported By: dverspui at hotpop dot com
-Status: Open
+Status: Assigned
Bug Type: Date/time related
Operating System: Linux (Fedora 2)
PHP Version: 5.1.0RC1
-Assigned To:
+Assigned To: derick
New Comment:
Looks like a feature, but I'm not sure.
Please have a look.
Previous Comments:
------------------------------------------------------------------------
[2005-10-15 00:09:27] dverspui at hotpop dot com
Hi, thanks for your reply.
I succesfully compiled 5.1.0RC3-dev you gave me the link to, but the
problem remains!
------------------------------------------------------------------------
[2005-10-14 21:40:23] tony2001@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php5-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5-win32-latest.zip
------------------------------------------------------------------------
[2005-10-14 17:36:00] dverspui at hotpop dot com
Description:
------------
strtotime("<day>",<time>) returns the specified day of the next week of
<time> if <time> itself is on day <day>.
Reproduce code:
---------------
print date("Ymd",strtotime(date("l",time()),time()));
Expected result:
----------------
Output should be the date of today, but on my installation it returns
the date of 7 days ahead. This differs from all earlier PHP versions.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=34874&edit=1