Skip to content

Commit

Permalink
tec: Force xdebug version in the Dockerfile
Browse files Browse the repository at this point in the history
The latest version of xdebug doesn't support PHP 7.4 anymore. We need to
force the version to the latest version which support PHP 7.4.

The other solution would have been to upgrade to a higher PHP version,
but I want it to be the same as the production, which run on Debian.
I’ll update PHP when Debian 12 (Bookworm) will be released.

References:

- https://xdebug.org/docs/compat
- https://chrisshennan.com/blog/fixing-pecl-xdebug-requires-php-version-8-installed-version-7-4
- https://wiki.debian.org/PHP#Available_versions
  • Loading branch information
marienfressinaud committed Feb 27, 2023
1 parent 99b1b79 commit 6effdf0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker/Dockerfile.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
libjpeg62-turbo-dev \
libpng-dev \
libwebp-dev \
&& pecl install xdebug \
&& pecl install xdebug-3.1.6 \
&& docker-php-ext-configure intl \
&& docker-php-ext-configure gd --with-webp --with-jpeg --with-freetype \
&& docker-php-ext-install -j$(nproc) intl gettext pcntl zip pdo pdo_pgsql gd \
Expand Down

0 comments on commit 6effdf0

Please sign in to comment.