svn: /php/php-src/ branches/PHP_5_3/ext/date/lib/interval.c branches/PHP_5_4/ext/date/lib/interval.c trunk/ext/date/lib/interval.c

From: Date: Wed, 07 Dec 2011 08:39:43 +0000
Subject: svn: /php/php-src/ branches/PHP_5_3/ext/date/lib/interval.c branches/PHP_5_4/ext/date/lib/interval.c trunk/ext/date/lib/interval.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-67221@lists.php.net to get a copy of this message
pajoye Wed, 07 Dec 2011 08:39:43 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=320563 Log: - fix warning and fix buggy behavior of timelib_diff due to bad assumption of floor signature (fixes almost date_diff tests too) Changed paths: U php/php-src/branches/PHP_5_3/ext/date/lib/interval.c U php/php-src/branches/PHP_5_4/ext/date/lib/interval.c U php/php-src/trunk/ext/date/lib/interval.c Modified: php/php-src/branches/PHP_5_3/ext/date/lib/interval.c =================================================================== --- php/php-src/branches/PHP_5_3/ext/date/lib/interval.c 2011-12-07 08:37:48 UTC (rev 320562) +++ php/php-src/branches/PHP_5_3/ext/date/lib/interval.c 2011-12-07 08:39:43 UTC (rev 320563) @@ -19,6 +19,7 @@ /* $Id$ */ #include "timelib.h" +#include <math.h> timelib_rel_time *timelib_diff(timelib_time *one, timelib_time *two) { Modified: php/php-src/branches/PHP_5_4/ext/date/lib/interval.c =================================================================== --- php/php-src/branches/PHP_5_4/ext/date/lib/interval.c 2011-12-07 08:37:48 UTC (rev 320562) +++ php/php-src/branches/PHP_5_4/ext/date/lib/interval.c 2011-12-07 08:39:43 UTC (rev 320563) @@ -19,6 +19,7 @@ /* $Id$ */ #include "timelib.h" +#include <math.h> timelib_rel_time *timelib_diff(timelib_time *one, timelib_time *two) { Modified: php/php-src/trunk/ext/date/lib/interval.c =================================================================== --- php/php-src/trunk/ext/date/lib/interval.c 2011-12-07 08:37:48 UTC (rev 320562) +++ php/php-src/trunk/ext/date/lib/interval.c 2011-12-07 08:39:43 UTC (rev 320563) @@ -19,6 +19,7 @@ /* $Id$ */ #include "timelib.h" +#include <math.h> timelib_rel_time *timelib_diff(timelib_time *one, timelib_time *two) {

« previous php.cvs (#67221) next »