diff --git a/tests.sh b/tests.sh index ce66731e08e41..148309244c517 100755 --- a/tests.sh +++ b/tests.sh @@ -485,7 +485,9 @@ build_php_c() { build_php7.0_mac() { internal_build_cpp # Install PHP - curl -s https://php-osx.liip.ch/install.sh | bash -s 7.0 + curl -s https://php-osx.liip.ch/install.sh -o /tmp/php-install.sh + bash /tmp/php-install.sh 7.0 + rm -f /tmp/php-install.sh PHP_FOLDER=`find /usr/local -type d -name "php5-7.0*"` # The folder name may change upon time test ! -z "$PHP_FOLDER" export PATH="$PHP_FOLDER/bin:$PATH" @@ -508,7 +510,9 @@ build_php7.3_mac() { # Install PHP # We can't test PHP 7.4 with these binaries yet: # https://github.com/liip/php-osx/issues/276 - curl -s https://php-osx.liip.ch/install.sh | bash -s 7.3 + curl -s https://php-osx.liip.ch/install.sh -o /tmp/php-install.sh + bash /tmp/php-install.sh 7.3 + rm -f /tmp/php-install.sh PHP_FOLDER=`find /usr/local -type d -name "php5-7.3*"` # The folder name may change upon time test ! -z "$PHP_FOLDER" export PATH="$PHP_FOLDER/bin:$PATH"