fix: use beta version of xdebug for PHP 8.4

This commit is contained in:
le0m
2024-11-27 14:42:26 +01:00
parent 456aae4b12
commit 68058d8dc8
+6 -2
View File
@@ -2,5 +2,9 @@ ARG BASE_IMAGE=chialab/php:latest
FROM ${BASE_IMAGE}
LABEL maintainer="dev@chialab.io"
# Install XDebug.
RUN install-php-extensions xdebug
# Install XDebug. Use beta version for PHP 8.4
RUN if [ $(php-config --vernum) -lt 80400 ]; then \
install-php-extensions xdebug; \
else \
install-php-extensions xdebug-beta; \
fi