Skip to content

Commit

Permalink
Fix zts support on self-hosted envs
Browse files Browse the repository at this point in the history
  • Loading branch information
shivammathur committed Nov 4, 2024
1 parent 51383ec commit 371ee9d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/scripts/linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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:?}"
}

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 371ee9d

Please sign in to comment.