From: Jani Taskinen Date: Thu, 12 Jul 2007 11:33:37 +0000 (+0000) Subject: MFH: fix invalid logic + prevent non-integers to be passed X-Git-Tag: php-5.2.4RC1~168 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=921eb8939b42eb726549919ab25b8fd7d67ff992;p=php MFH: fix invalid logic + prevent non-integers to be passed --- diff --git a/configure.in b/configure.in index 0e0d967bab..cacdc7d278 100644 --- a/configure.in +++ b/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