fix #1535 xdebug installation fails when php version is 5.6
This commit is contained in:
parent
20464d1bd2
commit
97adef735a
@ -86,7 +86,11 @@ ARG INSTALL_XDEBUG=false
|
|||||||
|
|
||||||
RUN if [ ${INSTALL_XDEBUG} = true ]; then \
|
RUN if [ ${INSTALL_XDEBUG} = true ]; then \
|
||||||
# Install the xdebug extension
|
# Install the xdebug extension
|
||||||
pecl install xdebug && \
|
if [ $(php -r "echo PHP_MAJOR_VERSION;") = "5" ]; then \
|
||||||
|
pecl install xdebug-2.5.5; \
|
||||||
|
else \
|
||||||
|
pecl install xdebug; \
|
||||||
|
fi && \
|
||||||
docker-php-ext-enable xdebug \
|
docker-php-ext-enable xdebug \
|
||||||
;fi
|
;fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user