Skip to content

Commit

Permalink
Fix php 8 major version
Browse files Browse the repository at this point in the history
  • Loading branch information
joanhey committed Feb 17, 2024
1 parent f30f254 commit fe0ff70
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ if [ -z "$NGX_PHP_INCS" ]; then
fi

if [ -z "$NGX_PHP_LIBS" ]; then
PHP_VERSION="`$PHP_CONFIG --version`"
PHP_MAJOR_VERSION=`echo $PHP_VERSION | sed -e "s#\.[0-9]*##g"`
PHP_VERSION="`$PHP_CONFIG --vernum`"
PHP_MAJOR_VERSION=`echo $PHP_VERSION | cut -b 1`
if [ $PHP_MAJOR_VERSION -ge "8" ]; then
PHP_MAJOR_VERSION=""
fi
Expand Down

0 comments on commit fe0ff70

Please sign in to comment.