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

@ -435,6 +435,22 @@ 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 && \
echo "extension=taint.so" >> /etc/php/${LARADOCK_PHP_VERSION}/mods-available/taint.ini && \
ln -s /etc/php/${LARADOCK_PHP_VERSION}/mods-available/taint.ini /etc/php/${LARADOCK_PHP_VERSION}/cli/conf.d/20-taint.ini && \
php -m | grep -q 'taint'; \
fi \
;fi
###########################################################################
# Libpng16 EXTENSION
###########################################################################