Skip to content

Commit

Permalink
Fix installing zts builds on ubuntu 20.04
Browse files Browse the repository at this point in the history
  • Loading branch information
shivammathur committed Nov 25, 2023
1 parent bbe1204 commit 99b3043
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scripts/linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ setup_php() {
sudo mkdir -m 777 -p /var/run /run/php
php_config="$(command -v php-config)"
if [[ -z "$php_config" ]] || [ "$(php_semver | cut -c 1-3)" != "$version" ]; then
if [ ! -e "/usr/bin/php$version" ] || [ ! -e "/usr/bin/php-config$version" ]; then
if [ "${ts:?}" = 'zts' ] || [ ! -e "/usr/bin/php$version" ] || [ ! -e "/usr/bin/php-config$version" ]; then
add_php >/dev/null 2>&1
else
if ! [[ "$version" =~ ${old_versions:?} ]]; then
Expand Down

0 comments on commit 99b3043

Please sign in to comment.