Skip to content

Commit

Permalink
fix: display PHP version in static build (#1213)
Browse files Browse the repository at this point in the history
  • Loading branch information
dunglas authored Nov 27, 2024
1 parent 8a199bb commit 9e2433e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions build-static.sh
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,11 @@ fi
export CGO_LDFLAGS
LIBPHP_VERSION="$(./buildroot/bin/php-config --version)"
export LIBPHP_VERSION
#LIBPHP_VERSION="$(./buildroot/bin/php-config --version)"
# Temporary workaround for https://github.com/crazywhalecc/static-php-cli/issues/563
if [[ $(cat buildroot/include/php/main/php_version.h) =~ (define PHP_VERSION \"([0-9\.]+)) ]]; then
export LIBPHP_VERSION=${BASH_REMATCH[2]}
fi
cd ../
Expand Down

0 comments on commit 9e2433e

Please sign in to comment.