Fix zts support on self-hosted envs

This commit is contained in:
Shivam Mathur 2024-11-04 08:20:56 +05:30
parent 51383ecefe
commit 371ee9d086
No known key found for this signature in database
GPG Key ID: 3E13E4C8591ACC2A

View File

@ -111,8 +111,8 @@ add_devtools() {
add_log "${tick:?}" "$tool" "Added $tool $semver" add_log "${tick:?}" "$tool" "Added $tool $semver"
} }
# Function to setup the nightly build from shivammathur/php-builder # Function to setup PHP from the shivammathur/php-builder builds.
setup_nightly() { setup_php_builder() {
run_script "php-builder" "${runner:?}" "$version" "${debug:?}" "${ts:?}" run_script "php-builder" "${runner:?}" "$version" "${debug:?}" "${ts:?}"
} }
@ -186,8 +186,8 @@ update_php() {
# Function to install PHP. # Function to install PHP.
add_php() { add_php() {
if [ "${runner:?}" = "self-hosted" ] || [ "${use_package_cache:-true}" = "false" ]; then if [ "${runner:?}" = "self-hosted" ] || [ "${use_package_cache:-true}" = "false" ]; then
if [[ "$version" =~ ${nightly_versions:?} ]]; then if [[ "$version" =~ ${nightly_versions:?} || "$ts" = "zts" ]]; then
setup_nightly setup_php_builder
else else
add_packaged_php add_packaged_php
switch_version >/dev/null 2>&1 switch_version >/dev/null 2>&1