diff options
| author | Pierre Joye <pajoye@php.net> | 2011-12-07 08:39:43 +0000 |
|---|---|---|
| committer | Pierre Joye <pajoye@php.net> | 2011-12-07 08:39:43 +0000 |
| commit | 93af22bbb9a5b9bc85e4329ecc65791b27f86350 (patch) | |
| tree | d30914da08a9a1f0c961b299e45558c2bfd7a92f | |
| parent | e6d945c1815b7d5ef6a0809d06df975b03f1deb0 (diff) | |
| download | php-git-93af22bbb9a5b9bc85e4329ecc65791b27f86350.tar.gz | |
- fix warning and fix buggy behavior of timelib_diff due to bad assumption of floor signature (fixes almost date_diff tests too)
| -rw-r--r-- | ext/date/lib/interval.c | 1 |
1 files changed, 1 insertions, 0 deletions
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 <math.h> timelib_rel_time *timelib_diff(timelib_time *one, timelib_time *two) { |
