We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e2ddee5 + f73a66d commit 861ea6bCopy full SHA for 861ea6b
1 file changed
php-fpm/Dockerfile
@@ -202,9 +202,13 @@ ARG INSTALL_PHPREDIS=false
202
203
RUN if [ ${INSTALL_PHPREDIS} = true ]; then \
204
# Install Php Redis Extension
205
- printf "\n" | pecl install -o -f redis \
206
- && rm -rf /tmp/pear \
207
- && docker-php-ext-enable redis \
+ if [ $(php -r "echo PHP_MAJOR_VERSION;") = "5" ]; then \
+ pecl install -o -f redis-4.3.0; \
+ else \
208
+ pecl install -o -f redis; \
209
+ fi \
210
+ && rm -rf /tmp/pear \
211
+ && docker-php-ext-enable redis \
212
;fi
213
214
###########################################################################
0 commit comments