From 371ee9d086380cbd7cadc99edd6f947133586dcf Mon Sep 17 00:00:00 2001 From: Shivam Mathur Date: Mon, 4 Nov 2024 08:20:56 +0530 Subject: [PATCH] Fix zts support on self-hosted envs --- src/scripts/linux.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/scripts/linux.sh b/src/scripts/linux.sh index 43c9ca1e..af4e23db 100644 --- a/src/scripts/linux.sh +++ b/src/scripts/linux.sh @@ -111,8 +111,8 @@ add_devtools() { add_log "${tick:?}" "$tool" "Added $tool $semver" } -# Function to setup the nightly build from shivammathur/php-builder -setup_nightly() { +# Function to setup PHP from the shivammathur/php-builder builds. +setup_php_builder() { run_script "php-builder" "${runner:?}" "$version" "${debug:?}" "${ts:?}" } @@ -186,8 +186,8 @@ update_php() { # Function to install PHP. add_php() { if [ "${runner:?}" = "self-hosted" ] || [ "${use_package_cache:-true}" = "false" ]; then - if [[ "$version" =~ ${nightly_versions:?} ]]; then - setup_nightly + if [[ "$version" =~ ${nightly_versions:?} || "$ts" = "zts" ]]; then + setup_php_builder else add_packaged_php switch_version >/dev/null 2>&1