add $ZM_CUSTOM_PHP_PATH env support

This commit is contained in:
crazywhalecc
2022-05-14 23:52:37 +08:00
parent 376b81f841
commit 4b55a3e525
2 changed files with 8 additions and 3 deletions

View File

@@ -5,7 +5,10 @@
# author: crazywhalecc
# since: 2.5.0
if [ -f "$(pwd)/runtime/php" ]; then
if [ "$ZM_CUSTOM_PHP_PATH" != "" ]; then
echo "* Using PHP executable: ""$ZM_CUSTOM_PHP_PATH"
executable="$ZM_CUSTOM_PHP_PATH"
elif [ -f "$(pwd)/runtime/php" ]; then
executable="$(pwd)/runtime/php"
echo "* Framework started with built-in php."
else