We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9250326 commit 402383eCopy full SHA for 402383e
1 file changed
php-fpm/Dockerfile
@@ -208,7 +208,10 @@ ARG INSTALL_GMP=false
208
209
RUN if [ ${INSTALL_GMP} = true ]; then \
210
# Install the GMP extension
211
- apt-get install -y libgmp-dev && \
+ apt-get install -y libgmp-dev && \
212
+ if [ $(php -r "echo PHP_MAJOR_VERSION;") = "5" ]; then \
213
+ ln -s /usr/include/x86_64-linux-gnu/gmp.h /usr/include/gmp.h \
214
+ ;fi && \
215
docker-php-ext-install gmp \
216
;fi
217
0 commit comments