fix: 解决 php8 安装 memcached 失败的问题 (#228)

This commit is contained in:
zhengkunwang 2023-07-12 17:55:04 +08:00 committed by GitHub
parent e6c80e028a
commit d37ba5cd74
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 23 additions and 30 deletions

View File

@ -87,6 +87,11 @@ if [[ -z "${EXTENSIONS##*,sourceguardian,*}" ]]; then
echo "---------- Install sourceguardian ----------"
install-php-extensions sourceguardian
fi
if [[ -z "${EXTENSIONS##*,memcached,*}" ]]; then
echo "---------- Install memcached ----------"
install-php-extensions memcached
fi
# end
@ -362,13 +367,6 @@ if [[ -z "${EXTENSIONS##*,psr,*}" ]]; then
docker-php-ext-enable psr
fi
if [[ -z "${EXTENSIONS##*,imagick,*}" ]]; then
echo "---------- Install imagick ----------"
apk add --no-cache file-dev
apk add --no-cache imagemagick-dev
printf "\n" | pecl install imagick-3.4.4
docker-php-ext-enable imagick
fi
if [[ -z "${EXTENSIONS##*,rar,*}" ]]; then
echo "---------- Install rar ----------"

View File

@ -72,7 +72,6 @@ installExtensionFromTgz()
docker-php-ext-enable ${extensionName}
}
# install use install-php-extensions
if [[ -z "${EXTENSIONS##*,ioncube_loader,*}" ]]; then
echo "---------- Install ioncube_loader ----------"
@ -88,6 +87,11 @@ if [[ -z "${EXTENSIONS##*,sourceguardian,*}" ]]; then
echo "---------- Install sourceguardian ----------"
install-php-extensions sourceguardian
fi
if [[ -z "${EXTENSIONS##*,memcached,*}" ]]; then
echo "---------- Install memcached ----------"
install-php-extensions memcached
fi
# end
@ -363,13 +367,6 @@ if [[ -z "${EXTENSIONS##*,psr,*}" ]]; then
docker-php-ext-enable psr
fi
if [[ -z "${EXTENSIONS##*,imagick,*}" ]]; then
echo "---------- Install imagick ----------"
apk add --no-cache file-dev
apk add --no-cache imagemagick-dev
printf "\n" | pecl install imagick-3.4.4
docker-php-ext-enable imagick
fi
if [[ -z "${EXTENSIONS##*,rar,*}" ]]; then
echo "---------- Install rar ----------"

View File

@ -87,6 +87,11 @@ if [[ -z "${EXTENSIONS##*,sourceguardian,*}" ]]; then
echo "---------- Install sourceguardian ----------"
install-php-extensions sourceguardian
fi
if [[ -z "${EXTENSIONS##*,memcached,*}" ]]; then
echo "---------- Install memcached ----------"
install-php-extensions memcached
fi
# end
@ -362,13 +367,6 @@ if [[ -z "${EXTENSIONS##*,psr,*}" ]]; then
docker-php-ext-enable psr
fi
if [[ -z "${EXTENSIONS##*,imagick,*}" ]]; then
echo "---------- Install imagick ----------"
apk add --no-cache file-dev
apk add --no-cache imagemagick-dev
printf "\n" | pecl install imagick-3.4.4
docker-php-ext-enable imagick
fi
if [[ -z "${EXTENSIONS##*,rar,*}" ]]; then
echo "---------- Install rar ----------"