Skip to content

Commit 4950bcc

Browse files
committed
Fix PHP 5.6 Xdebug compat
1 parent ccbdd09 commit 4950bcc

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

tests/Compat/docker/Dockerfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,12 @@ RUN apt-get update \
2020
&& if [ "$XDEBUG_VERSION" = "none" ]; then \
2121
true; \
2222
elif [ -n "$XDEBUG_VERSION" ]; then \
23-
pecl install xdebug-"$XDEBUG_VERSION"; \
23+
pecl install xdebug-"$XDEBUG_VERSION" \
24+
&& docker-php-ext-enable xdebug; \
2425
else \
25-
pecl install xdebug; \
26+
pecl install xdebug \
27+
&& docker-php-ext-enable xdebug; \
2628
fi \
27-
&& if php -m | grep -qi '^xdebug$'; then docker-php-ext-enable xdebug; fi \
2829
&& rm -rf /var/lib/apt/lists/*
2930

3031
WORKDIR /app

0 commit comments

Comments
 (0)