Browse Source

- Fixed bug #50266 (conflicting types for llabs)

experimental/5.3-FPM
Jani Taskinen 17 years ago
parent
commit
2e5546d71e
  1. 1
      NEWS
  2. 2
      ext/date/config0.m4
  3. 8
      ext/date/php_date.c

1
NEWS

@ -29,6 +29,7 @@ PHP NEWS
- Fixed bug #50282 (xmlrpc_encode_request() changes object into array in
calling function). (Felipe)
- Fixed bug #50267 (get_browser(null) does not use HTTP_USER_AGENT). (Jani)
- Fixed bug #50266 (conflicting types for llabs). (Jani)
- Fixed bug #50255 (isset() and empty() silently casts array to object).
(Felipe)
- Fixed bug #50240 (pdo_mysql.default_socket in php.ini shouldn't used

2
ext/date/config0.m4

@ -16,6 +16,8 @@ PHP_ADD_INCLUDE([$ext_srcdir/lib])
PHP_INSTALL_HEADERS([ext/date], [php_date.h lib/timelib.h lib/timelib_structs.h lib/timelib_config.h])
AC_CHECK_FUNCS([llabs])
cat > $ext_builddir/lib/timelib_config.h <<EOF
#ifdef PHP_WIN32
# include "config.w32.h"

8
ext/date/php_date.c

@ -35,12 +35,12 @@
# include "win32/php_stdint.h"
#endif
#if defined(__GNUC__) && __GNUC__ < 3
#ifndef HAVE_LLABS
# if defined(__GNUC__) && __GNUC__ < 3
static __inline __int64_t llabs( __int64_t i ) { return i >= 0 ? i : -i; }
#endif
#if defined(NETWARE) && defined(__MWERKS__)
# elif defined(NETWARE) && defined(__MWERKS__)
static __inline long long llabs( long long i ) { return i >= 0 ? i : -i; }
# endif
#endif
/* {{{ arginfo */

Loading…
Cancel
Save