Skip to content

Commit ccbdd09

Browse files
committed
Relax PHP 5.6 compat docker
1 parent eb0995f commit ccbdd09

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

tests/Compat/docker/Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,14 @@ RUN apt-get update \
1717
libxml2-dev \
1818
$PHPIZE_DEPS \
1919
&& docker-php-ext-install xml \
20-
&& if [ -n "$XDEBUG_VERSION" ]; then \
20+
&& if [ "$XDEBUG_VERSION" = "none" ]; then \
21+
true; \
22+
elif [ -n "$XDEBUG_VERSION" ]; then \
2123
pecl install xdebug-"$XDEBUG_VERSION"; \
2224
else \
2325
pecl install xdebug; \
2426
fi \
25-
&& docker-php-ext-enable xdebug \
27+
&& if php -m | grep -qi '^xdebug$'; then docker-php-ext-enable xdebug; fi \
2628
&& rm -rf /var/lib/apt/lists/*
2729

2830
WORKDIR /app

0 commit comments

Comments
 (0)