1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 08:12:21 +01:00

Fix #76574: use of undeclared identifiers INT_MAX and LONG_MAX

As of Oniguruma 6.4.0 <limits.h> is required, so we have to add a check
for this header file to set the respective macro.
This commit is contained in:
Christoph M. Becker
2018-07-10 14:28:28 +02:00
parent 4182b0855f
commit 271ae3eb2b
2 changed files with 2 additions and 1 deletions

1
NEWS
View File

@@ -20,6 +20,7 @@ PHP NEWS
log_limit, log_buffering and decorate_workers_output. (Jakub Zelenka)
- mbstring:
. Fixed bug #76574 (use of undeclared identifiers INT_MAX and LONG_MAX). (cmb)
. Fixed bug #76594 (Bus Error due to unaligned access in zend_ini.c
OnUpdateLong). (cmb, Nikita)

View File

@@ -96,7 +96,7 @@ int main() { return foo(10, "", 3.14); }
])
])
AC_CHECK_HEADERS([stdlib.h string.h strings.h unistd.h sys/time.h sys/times.h stdarg.h])
AC_CHECK_HEADERS([stdlib.h string.h strings.h unistd.h sys/time.h sys/times.h stdarg.h limits.h])
AC_CHECK_SIZEOF(int, 4)
AC_CHECK_SIZEOF(short, 2)
AC_CHECK_SIZEOF(long, 4)