add php ext "taint" (#2150)

* add php ext "taint", only support php7.
This commit is contained in:
xiagw
2019-05-29 08:56:40 +08:00
committed by Shao Yu-Lung (Allen)
parent dba1594b05
commit bc8772441b
5 changed files with 50 additions and 0 deletions

View File

@ -223,6 +223,21 @@ RUN if [ ${INSTALL_SWOOLE} = true ]; then \
&& php -m | grep -q 'swoole' \
;fi
###########################################################################
# Taint EXTENSION
###########################################################################
ARG INSTALL_TAINT=false
RUN if [ ${INSTALL_TAINT} = true ]; then \
# Install Php TAINT Extension
if [ $(php -r "echo PHP_MAJOR_VERSION;") = "7" ]; then \
pecl install taint && \
docker-php-ext-enable taint && \
php -m | grep -q 'taint'; \
fi \
;fi
###########################################################################
# MongoDB:
###########################################################################