mirror of
https://github.com/shivammathur/setup-php.git
synced 2024-11-24 20:51:06 +07:00
Fix zts support on self-hosted envs
This commit is contained in:
parent
51383ecefe
commit
371ee9d086
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user