We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f30f254 commit fe0ff70Copy full SHA for fe0ff70
config
@@ -65,8 +65,8 @@ if [ -z "$NGX_PHP_INCS" ]; then
65
fi
66
67
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"`
+ PHP_VERSION="`$PHP_CONFIG --vernum`"
+ PHP_MAJOR_VERSION=`echo $PHP_VERSION | cut -b 1`
70
if [ $PHP_MAJOR_VERSION -ge "8" ]; then
71
PHP_MAJOR_VERSION=""
72
0 commit comments