mirror of
https://github.com/php/php-src.git
synced 2024-11-23 09:54:15 +08:00
MFH: fix invalid logic + prevent non-integers to be passed
This commit is contained in:
parent
28a2fe07b4
commit
921eb8939b
10
configure.in
10
configure.in
@ -832,9 +832,13 @@ AC_MSG_CHECKING([how big to make fd sets])
|
||||
PHP_ARG_ENABLE(fd-setsize,,
|
||||
[ --enable-fd-setsize Set size of descriptor sets], no, no)
|
||||
|
||||
if test "$PHP_FD_SETSIZE" != "yes"; then
|
||||
CPPFLAGS="$CPPFLAGS -DFD_SETSIZE=$PHP_FD_SETSIZE"
|
||||
AC_MSG_RESULT([using $PHP_FD_SETSIZE])
|
||||
if test "$PHP_FD_SETSIZE" != "no"; then
|
||||
if test "0$PHP_FD_SETSIZE" -gt 0 2>/dev/null; then
|
||||
CPPFLAGS="$CPPFLAGS -DFD_SETSIZE=$PHP_FD_SETSIZE"
|
||||
AC_MSG_RESULT([using $PHP_FD_SETSIZE])
|
||||
else
|
||||
AC_MSG_ERROR([Invalid value passed to --enable-fd-setsize!])
|
||||
fi
|
||||
else
|
||||
AC_MSG_RESULT([using system default])
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user