Skip to content

Commit 624488b

Browse files
committed
Fix bug #78197: PCRE2 version check
When external PCRE library version is of format ##.##-RC# the check failed.
1 parent cc3fe3b commit 624488b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/pcre/config0.m4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ PHP_ARG_WITH(pcre-jit,,[ --with-pcre-jit Enable PCRE JIT functionality
3535
if test -x "$PCRE2_CONF"; then
3636
AC_MSG_CHECKING(for PCRE2 10.30 or greater)
3737
PCRE2_VER=`$PCRE2_CONF --version`
38-
if test "`echo $PCRE2_VER | sed 's,\.,,g'`" -lt 1030; then
38+
if test "`echo $PCRE2_VER | $SED 's/\([[0-9]]*\)\.\([[0-9]]*\).*/\1\2/g'`" -lt "1030"; then
3939
AC_MSG_ERROR(PCRE2 version 10.30 or later is required to compile php with PCRE2 support)
4040
else
4141
AC_MSG_RESULT($PCRE2_VER)

0 commit comments

Comments
 (0)