Re: svn: /php/php-src/ branches/PHP 5 3/ext/date/tests/DateTime data-dates.inc branches/PHP 5 3/ext/date/tests/DateTime data-february.inc branches/PHP
5 3/ext/date/tests/DateTime sub-dates.phpt branches/PHP 5 3/ext...

From: Date: Tue, 23 Aug 2011 17:12:19 +0000
Subject: Re: svn: /php/php-src/ branches/PHP 5 3/ext/date/tests/DateTime data-dates.inc branches/PHP 5 3/ext/date/tests/DateTime data-february.inc branches/PHP
5 3/ext/date/tests/DateTime sub-dates.phpt branches/PHP 5 3/ext...
References: 1  Groups: php.cvs 
Request: Send a blank email to php-cvs+get-65963@lists.php.net to get a copy of this message
On 8/23/11 9:40 AM, Daniel Convissor wrote:
danielc                                  Tue, 23 Aug 2011 16:40:19 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=315376 Log: Fix differences in some sub() results that were causing tests to fail.
I don't understand this fix. How comes that diff test has: test_years_positive__6_shy_1_day: DIFF: 2007-02-06 00:00:00 EST - 2000-02-07 00:00:00 EST = **P+6Y11M30DT0H0M0S** And the add test has: test_years_positive__6_shy_1_day: ADD: 2000-02-07 00:00:00 EST + P+6Y11M30DT0H0M0S = **2007-02-06 00:00:00 EST** but now sub test has: test_years_positive__6_shy_1_day: SUB: 2007-02-06 00:00:00 EST - P+6Y11M30DT0H0M0S = **2000-02-05 00:00:00 EST** Shouldn't the dates match? -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/ (408)454-6900 ext. 227

« previous php.cvs (#65963) next »