Browse Source

Merge branch 'PHP-5.5' into PHP-5.6

* PHP-5.5:
  Enable build without atoll (e.g old AIX flavours)
pull/743/head
Lior Kaplan 12 years ago
parent
commit
c186ce8fef
  1. 4
      ext/date/php_date.c

4
ext/date/php_date.c

@ -50,7 +50,11 @@ static inline long long php_date_llabs( long long i ) { return i >= 0 ? i : -i;
int st = snprintf(s, len, "%lld", i); \
s[st] = '\0'; \
} while (0);
#ifdef HAVE_ATOLL
# define DATE_A64I(i, s) i = atoll(s)
#else
# define DATE_A64I(i, s) i = strtoll(s, NULL, 10)
#endif
#endif
/* {{{ arginfo */

Loading…
Cancel
Save