From: Pierre Joye Date: Wed, 7 Dec 2011 08:39:43 +0000 (+0000) Subject: - fix warning and fix buggy behavior of timelib_diff due to bad assumption of floor... X-Git-Tag: php-5.4.0RC3~10 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=93af22bbb9a5b9bc85e4329ecc65791b27f86350;p=php - fix warning and fix buggy behavior of timelib_diff due to bad assumption of floor signature (fixes almost date_diff tests too) --- diff --git a/ext/date/lib/interval.c b/ext/date/lib/interval.c index c8200a48c3..af150fc802 100644 --- a/ext/date/lib/interval.c +++ b/ext/date/lib/interval.c @@ -19,6 +19,7 @@ /* $Id$ */ #include "timelib.h" +#include timelib_rel_time *timelib_diff(timelib_time *one, timelib_time *two) {