Merge pull request #2917 from PavelSavushkinMix/fix/memcached_extension

feat(MEMCACHED extension): add memcached extension installation for CI
This commit is contained in:
Shao Yu-Lung (Allen) 2021-03-23 10:49:37 +08:00 committed by GitHub
commit 1fa380d90a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 3 deletions

View File

@ -33,7 +33,6 @@ jobs:
sed -i -- 's/PHALCON=true/PHALCON=false/g' .env sed -i -- 's/PHALCON=true/PHALCON=false/g' .env
sed -i -- 's/RDKAFKA=true/RDKAFKA=false/g' .env sed -i -- 's/RDKAFKA=true/RDKAFKA=false/g' .env
sed -i -- 's/MAILPARSE=true/MAILPARSE=false/g' .env sed -i -- 's/MAILPARSE=true/MAILPARSE=false/g' .env
sed -i -- 's/MEMCACHED=true/MEMCACHED=false/g' .env
sed -i -- 's/OCI8=true/OCI8=false/g' .env sed -i -- 's/OCI8=true/OCI8=false/g' .env
sed -i -- 's/IONCUBE=true/IONCUBE=false/g' .env sed -i -- 's/IONCUBE=true/IONCUBE=false/g' .env
sed -i -- 's/V8JS=true/V8JS=false/g' .env sed -i -- 's/V8JS=true/V8JS=false/g' .env

View File

@ -507,9 +507,9 @@ ARG INSTALL_MEMCACHED=false
RUN if [ ${INSTALL_MEMCACHED} = true ]; then \ RUN if [ ${INSTALL_MEMCACHED} = true ]; then \
# Install the php memcached extension # Install the php memcached extension
if [ $(php -r "echo PHP_MAJOR_VERSION;") = "5" ]; then \ if [ $(php -r "echo PHP_MAJOR_VERSION;") = "5" ]; then \
pecl install memcached-2.2.0; \ echo '' | pecl -q install memcached-2.2.0; \
else \ else \
pecl install memcached-3.1.3; \ echo '' | pecl -q install memcached; \
fi \ fi \
&& docker-php-ext-enable memcached \ && docker-php-ext-enable memcached \
;fi ;fi