Skip to content

Commit

Permalink
[ubuntu] Add PHP extensions: imagick, pcov and sodium (actions#3405)
Browse files Browse the repository at this point in the history
  • Loading branch information
shivammathur authored May 18, 2021
1 parent 952ee3e commit 85e107c
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions images/linux/scripts/installers/php.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ for version in $php_versions; do
php$version-gd \
php$version-gmp \
php$version-igbinary \
php$version-imagick \
php$version-imap \
php$version-interbase \
php$version-intl \
Expand Down Expand Up @@ -74,6 +75,17 @@ for version in $php_versions; do
if [[ $version != "8.0" ]]; then
apt-fast install -y --no-install-recommends php$version-xmlrpc php$version-json
fi

if [[ $version != "5.6" && $version != "7.0" ]]; then
apt-fast install -y --no-install-recommends php$version-pcov

# Disable PCOV, as Xdebug is enabled by default
echo "" | sudo tee /etc/php/$version/mods-available/pcov.ini
fi

if [[ $version = "7.0" || $version = "7.1" ]]; then
apt-fast install -y --no-install-recommends php$version-sodium
fi
done

apt-fast install -y --no-install-recommends php-pear
Expand Down

0 comments on commit 85e107c

Please sign in to comment.