Skip to content

Commit

Permalink
Make PHP API check more specific
Browse files Browse the repository at this point in the history
  • Loading branch information
iedsapala authored and morrisonlevi committed Sep 30, 2019
1 parent 354e6aa commit c004025
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package/post-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ println

php -i > "$EXTENSION_LOGS_DIR/php-info.log"

PHP_VERSION=$(php -i | grep 'PHP API' | awk '{print $NF}')
PHP_VERSION=$(php -i | awk '/^PHP[ \t]+API[ \t]+=>/ { print $NF }')
PHP_CFG_DIR=$(php --ini | grep 'Scan for additional .ini files in:' | sed -e 's/Scan for additional .ini files in://g' | head -n 1 | awk '{print $1}')

PHP_THREAD_SAFETY=$(php -i | grep 'Thread Safety' | awk '{print $NF}' | grep -i enabled)
Expand Down

0 comments on commit c004025

Please sign in to comment.