Skip to content

Commit fe0ff70

Browse files
committed
Fix php 8 major version
1 parent f30f254 commit fe0ff70

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

config

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ if [ -z "$NGX_PHP_INCS" ]; then
6565
fi
6666

6767
if [ -z "$NGX_PHP_LIBS" ]; then
68-
PHP_VERSION="`$PHP_CONFIG --version`"
69-
PHP_MAJOR_VERSION=`echo $PHP_VERSION | sed -e "s#\.[0-9]*##g"`
68+
PHP_VERSION="`$PHP_CONFIG --vernum`"
69+
PHP_MAJOR_VERSION=`echo $PHP_VERSION | cut -b 1`
7070
if [ $PHP_MAJOR_VERSION -ge "8" ]; then
7171
PHP_MAJOR_VERSION=""
7272
fi

0 commit comments

Comments
 (0)