Merge pull request #1565 from bestlong/fix-php5-xdebug
fix #1535 xdebug installation fails when php version is 5.6
This commit is contained in:
commit
8158b6f50e
@ -85,9 +85,13 @@ RUN if [ ${INSTALL_PG_CLIENT} = true ]; then \
|
|||||||
ARG INSTALL_XDEBUG=false
|
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 \
|
||||||
docker-php-ext-enable xdebug \
|
pecl install xdebug-2.5.5; \
|
||||||
|
else \
|
||||||
|
pecl install xdebug; \
|
||||||
|
fi && \
|
||||||
|
docker-php-ext-enable xdebug \
|
||||||
;fi
|
;fi
|
||||||
|
|
||||||
# Copy xdebug configuration for remote debugging
|
# Copy xdebug configuration for remote debugging
|
||||||
|
Loading…
Reference in New Issue
Block a user