Skip to content

Commit 271ae3e

Browse files
committed
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.
1 parent 4182b08 commit 271ae3e

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

NEWS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ PHP NEWS
2020
log_limit, log_buffering and decorate_workers_output. (Jakub Zelenka)
2121

2222
- mbstring:
23+
. Fixed bug #76574 (use of undeclared identifiers INT_MAX and LONG_MAX). (cmb)
2324
. Fixed bug #76594 (Bus Error due to unaligned access in zend_ini.c
2425
OnUpdateLong). (cmb, Nikita)
2526

ext/mbstring/config.m4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ int main() { return foo(10, "", 3.14); }
9696
])
9797
])
9898
99-
AC_CHECK_HEADERS([stdlib.h string.h strings.h unistd.h sys/time.h sys/times.h stdarg.h])
99+
AC_CHECK_HEADERS([stdlib.h string.h strings.h unistd.h sys/time.h sys/times.h stdarg.h limits.h])
100100
AC_CHECK_SIZEOF(int, 4)
101101
AC_CHECK_SIZEOF(short, 2)
102102
AC_CHECK_SIZEOF(long, 4)

0 commit comments

Comments
 (0)