File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -31,9 +31,15 @@ RUN if [ "$PHP_VERSION" != "5.6" ] && [ "$PHP_VERSION" != "7.0" ]; then \
3131 rm -f /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini && \
3232 echo "pcov.enabled=1" >> /usr/local/etc/php/php.ini ;\
3333 elif [ "$PHP_VERSION" == "5.6" ]; then \
34- yes | pecl install xdebug-2.5.5; \
34+ yes | pecl install xdebug-2.5.5 \
35+ && echo "zend_extension=$(find /usr/local/lib/php/extensions/ -name xdebug.so)" > /usr/local/etc/php/conf.d/xdebug.ini \
36+ && echo "xdebug.remote_enable=on" >> /usr/local/etc/php/conf.d/xdebug.ini \
37+ && echo "xdebug.remote_autostart=off" >> /usr/local/etc/php/conf.d/xdebug.ini; \
3538 else \
36- yes | pecl install xdebug; \
39+ yes | pecl install xdebug \
40+ && echo "zend_extension=$(find /usr/local/lib/php/extensions/ -name xdebug.so)" > /usr/local/etc/php/conf.d/xdebug.ini \
41+ && echo "xdebug.remote_enable=on" >> /usr/local/etc/php/conf.d/xdebug.ini \
42+ && echo "xdebug.remote_autostart=off" >> /usr/local/etc/php/conf.d/xdebug.ini; \
3743 fi
3844
3945# Install composer
You can’t perform that action at this time.
0 commit comments