We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f2f5aea + ad21cd2 commit 5677564Copy full SHA for 5677564
1 file changed
php-fpm/Dockerfile
@@ -224,7 +224,11 @@ ARG INSTALL_MEMCACHED=false
224
225
RUN if [ ${INSTALL_MEMCACHED} = true ]; then \
226
# Install the php memcached extension
227
- curl -L -o /tmp/memcached.tar.gz "https://github.com/php-memcached-dev/php-memcached/archive/php7.tar.gz" \
+ if [ $(php -r "echo PHP_MAJOR_VERSION;") = "5" ]; then \
228
+ curl -L -o /tmp/memcached.tar.gz "https://github.com/php-memcached-dev/php-memcached/archive/2.2.0.tar.gz"; \
229
+ else \
230
+ curl -L -o /tmp/memcached.tar.gz "https://github.com/php-memcached-dev/php-memcached/archive/php7.tar.gz"; \
231
+ fi \
232
&& mkdir -p memcached \
233
&& tar -C memcached -zxvf /tmp/memcached.tar.gz --strip 1 \
234
&& ( \
0 commit comments