diff --git a/src/scripts/linux.sh b/src/scripts/linux.sh index bc4bb6232..523fda3c1 100644 --- a/src/scripts/linux.sh +++ b/src/scripts/linux.sh @@ -100,10 +100,19 @@ add_devtools() { } # Function to setup the nightly build from shivammathur/php-builder -setup_nightly() { +setup_zts() { run_script "php-builder" "${runner:?}" "$version" "${debug:?}" "${ts:?}" } +# Function to setup the nightly build from shivammathur/php-builder +setup_nightly() { + if [ "$runner" = "self-hosted" ]; then + run_script "php-builder" "${runner:?}" "$version" "${debug:?}" "${ts:?}" + else + run_script "php-ubuntu" "$version" "${debug:?}" + fi +} + # Function to setup PHP 5.3, PHP 5.4 and PHP 5.5. setup_old_versions() { run_script "php5-ubuntu" "$version"