Bug #51184 [Com]: DateInterval has incorrect days property on windows
From: pluk77 at gmail dot com Date: Wed, 19 May 2010 13:20:34 +0000 Subject: Bug #51184 [Com]: DateInterval has incorrect days property on windows References: 1 Groups: php.bugs Request: Send a blank email to php-bugs+get-150605@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=51184&edit=1
ID: 51184
Comment by: pluk77 at gmail dot com
Reported by: seld@php.net
Summary: DateInterval has incorrect days property on windows
Status: Closed
Type: Bug
Package: Date/time related
Operating System: Windows
PHP Version: 5.3.2RC3
Assigned To: seld
New Comment:
I am using this version:
PHP5.3.2 VC6 x86 Thread Safe (2010-Mar-04 20:11:08)
and the bug still shows.
Can anybody else confirm this bug is still open?
Previous Comments:
------------------------------------------------------------------------
[2010-05-19 11:54:18] seld@php.net
Confirmed working here. Kalle's comment came after 5.3.2 and I thought
the commit was younger too, but it seems good in 5.3.2 indeed.
------------------------------------------------------------------------
[2010-05-19 11:43:47] pajoye@php.net
It has been released, so try 5.3.2
------------------------------------------------------------------------
[2010-05-19 11:38:49] pluk77 at gmail dot com
There seems to be no windows snapshot available so unable to test if the
bugfix solved this problem as well.
------------------------------------------------------------------------
[2010-03-25 13:26:21] kalle@php.net
Please try using this snapshot:
http://snaps.php.net/php5.3-latest.tar.gz
For Windows:
http://windows.php.net/snapshots/
Derick fixed #49778, did that fix the issue?
------------------------------------------------------------------------
[2010-03-02 13:41:41] seld@php.net
Description:
------------
On Windows, no matter what the dates are, the "days" property of the
DateInterval object returned by DateTime::diff() is always 6015.
Might be related to http://bugs.php.net/bug.php?id=49778 and
http://bugs.php.net/bug.php?id=49081
Test script:
---------------
$start = new DateTime('2010-06-06');
$end = new DateTime('2011-02-04');
echo $start->diff($end)->days;
$start = new DateTime('2005-01-01');
echo $start->diff($end)->days;
Expected result:
----------------
The right number of days, or at least always 42 :)
Actual result:
--------------
6015, always.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=51184&edit=1
Thread (28 messages)
- Bug #51184 [Opn->Fbk]: DateInterval has incorrect days property on windows
- Bug #51184 [Com]: DateInterval has incorrect days property on windows
- Bug #51184 [Fbk]: DateInterval has incorrect days property on windows
- Bug #51184 [Fbk->Csd]: DateInterval has incorrect days property on windows
- Bug #51184 [Com]: DateInterval has incorrect days property on windows
- Bug #51184 [Csd]: DateInterval has incorrect days property on windows
- Bug #51184 [Com]: DateInterval has incorrect days property on windows
- Bug #51184 [Com]: DateInterval has incorrect days property on windows
- Bug #51184 [Csd->ReO]: DateInterval has incorrect days property on windows
- Bug #51184 [Com]: DateInterval has incorrect days property on windows
- Bug #51184 [Com]: DateInterval has incorrect days property on windows
- Bug #51184 [ReO->Csd]: DateInterval has incorrect days property on windows
- Bug #51184 [Com]: DateInterval has incorrect days property on windows
- Bug #51184 [Csd->Wfx]: DateInterval has incorrect days property on windows
- Bug #51184 [Com]: DateInterval has incorrect days property on windows
- Bug #51184 [Wfx]: DateInterval has incorrect days property on windows
- Bug #51184 [Com]: DateInterval has incorrect days property on windows
- Bug #51184 [Wfx]: DateInterval has incorrect days property on windows
- Bug #51184 [Com]: DateInterval has incorrect days property on windows
- Bug #51184 [Com]: DateInterval has incorrect days property on windows
- Bug #51184 [Com]: DateInterval has incorrect days property on windows
- Bug #51184 [Com]: DateInterval has incorrect days property on windows
- Bug #51184 [Com]: DateInterval has incorrect days property on windows
- Bug #51184 [Com]: DateInterval has incorrect days property on windows
- Bug #51184 [Com]: DateInterval has incorrect days property on windows
- Bug #51184 [Com]: DateInterval has incorrect days property on windows
- Bug #51184 [Com]: DateInterval has incorrect days property on windows
| « previous | php.bugs (#150605) | next » |
|---|