com php-src: Fix #76574: use of undeclared identifiers INT_MAX and LONG_MAX: NEWS ext/mbstring/config. m4

From: Date: Tue, 10 Jul 2018 12:28:28 +0000
Subject: com php-src: Fix #76574: use of undeclared identifiers INT_MAX and LONG_MAX: NEWS ext/mbstring/config. m4
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-102513@lists.php.net to get a copy of this message
Commit: 271ae3eb2b142b3ecabe01ebdcc2d29acdd9bc1a Author: Christoph M. Becker <cmbecker69@gmx.de> Tue, 10 Jul 2018 14:28:28 +0200 Parents: 4182b0855fdfec8af7381fc282a953a5942758dc Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=271ae3eb2b142b3ecabe01ebdcc2d29acdd9bc1a Log: 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. Bugs: https://bugs.php.net/76574 Changed paths: M NEWS M ext/mbstring/config.m4 Diff: diff --git a/NEWS b/NEWS index aa00159..70df174 100644 --- a/NEWS +++ b/NEWS @@ -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) diff --git a/ext/mbstring/config.m4 b/ext/mbstring/config.m4 index d105492..4bd1b8f 100644 --- a/ext/mbstring/config.m4 +++ b/ext/mbstring/config.m4 @@ -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)

« previous php.cvs (#102513) next »