Skip to content

Commit 94c6240

Browse files
alchimikphiltrep
authored andcommitted
workaround for 'Xdebug breaks on access to class static property' (laradock#654)
see docker-library/php#133
1 parent 178d7e1 commit 94c6240

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

php-fpm/Dockerfile-56

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,11 @@ RUN if [ ${INSTALL_SOAP} = true ]; then \
5555
ARG INSTALL_XDEBUG=false
5656
RUN if [ ${INSTALL_XDEBUG} = true ]; then \
5757
# Install the xdebug extension
58-
pecl install xdebug && \
59-
docker-php-ext-enable xdebug \
58+
# pecl install xdebug && docker-php-ext-enable xdebug \
59+
# workaround for https://github.com/docker-library/php/issues/133
60+
# - Xdebug breaks on access to class static property
61+
apt-get install -y php5-xdebug && \
62+
echo "zend_extension=/usr/lib/php5/20131226/xdebug.so" > /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini \
6063
;fi
6164

6265
# Copy xdebug configration for remote debugging

0 commit comments

Comments
 (0)