From 28cf1705a7a5bdaf7fc07bd886c36a9675bc1bfb Mon Sep 17 00:00:00 2001 From: SVGAnimate Date: Sat, 24 Jun 2023 16:30:57 +0200 Subject: [PATCH] Update php.m4 Remove php version suffix from '-' separator --- build/php.m4 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/php.m4 b/build/php.m4 index e11a00c3bcb16..919279833f793 100644 --- a/build/php.m4 +++ b/build/php.m4 @@ -1892,7 +1892,7 @@ AC_DEFUN([PHP_PROG_PHP],[ if test -n "$PHP"; then AC_MSG_CHECKING([for php version]) - php_version=$($PHP -v | head -n1 | cut -d ' ' -f 2) + php_version=$($PHP -v | head -n1 | cut -d ' ' -f 2 | cut -d '-' -f 1) if test -z "$php_version"; then php_version=0.0.0 fi