From: Peter Kokot Date: Sun, 23 Jun 2019 13:46:47 +0000 (+0200) Subject: Fix bug #78197: PCRE2 version check X-Git-Tag: php-7.4.0alpha3~108^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=624488b5e82545f6424998fa66d6bb0f143f81c0;p=php Fix bug #78197: PCRE2 version check When external PCRE library version is of format ##.##-RC# the check failed. --- diff --git a/ext/pcre/config0.m4 b/ext/pcre/config0.m4 index b9542f0113..3b043aec80 100644 --- a/ext/pcre/config0.m4 +++ b/ext/pcre/config0.m4 @@ -35,7 +35,7 @@ PHP_ARG_WITH(pcre-jit,,[ --with-pcre-jit Enable PCRE JIT functionality if test -x "$PCRE2_CONF"; then AC_MSG_CHECKING(for PCRE2 10.30 or greater) PCRE2_VER=`$PCRE2_CONF --version` - if test "`echo $PCRE2_VER | sed 's,\.,,g'`" -lt 1030; then + if test "`echo $PCRE2_VER | $SED 's/\([[0-9]]*\)\.\([[0-9]]*\).*/\1\2/g'`" -lt "1030"; then AC_MSG_ERROR(PCRE2 version 10.30 or later is required to compile php with PCRE2 support) else AC_MSG_RESULT($PCRE2_VER)