Re: Re: svn: /php/php-src/ branches/PHP_5_3/ext/date/php_date.c trunk/ext/date/php_date.c
| From: | Daniel Convissor | Date: | Wed, 26 Jan 2011 14:13:01 +0000 |
| Subject: | Re: Re: svn: /php/php-src/ branches/PHP_5_3/ext/date/php_date.c trunk/ext/date/php_date.c | ||
| References: | 1 2 3 4 5 6 7 8 9 10 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-51365@lists.php.net to get a copy of this message | ||
Hi Folks:
On Tue, Jan 25, 2011 at 04:15:26PM +0100, Pierre Joye wrote:
> be sure to use the right type(s), do the casting correctly
Let's dial back the personalities for a moment. The issue raised above
produces bugs in DateTime::diff().
The existing code relies on C dropping decimal components when putting
float values into integers and the types passed to floor() and ceil().
This generally works on *nix machines, but throws Windows into a tizzy.
The following bugs seem to stem from these issues:
52798 dateTime => function diff => days KO
51184 DateInterval has incorrect days property on windows
52920 Multiple datetime affects divisions
52242 DateTime::diff affects round()
52469 Datetime affect the division
51894 DateTime::Diff breaks range()
48187 DateTime::diff() corrupting microtime() result
I hope everyone can step back a moment and address these problems before
the next release.
Thanks,
--Dan
--
T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y
data intensive web and database programming
http://www.AnalysisAndSolutions.com/
4015 7th Ave #4, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409