xdebug drop support php7.0

This commit is contained in:
Shao Yu Lung 2020-02-18 09:56:45 +08:00
parent c073ebefbb
commit 6eeb0c8388
1 changed files with 5 additions and 1 deletions

View File

@ -188,8 +188,12 @@ RUN if [ ${INSTALL_XDEBUG} = true ]; then \
# Install the xdebug extension
if [ $(php -r "echo PHP_MAJOR_VERSION;") = "5" ]; then \
pecl install xdebug-2.5.5; \
else \
if [ $(php -r "echo PHP_MINOR_VERSION;") = "0" ]; then \
pecl install xdebug-2.9.0; \
else \
pecl install xdebug; \
fi \
fi && \
docker-php-ext-enable xdebug \
;fi