Skip to content

Commit 101a4db

Browse files
ISUE #1473: Update to stable xdebug version
1 parent f1f4c5a commit 101a4db

File tree

1 file changed

+5
-21
lines changed

1 file changed

+5
-21
lines changed

docker/php-cli/Dockerfile

Lines changed: 5 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -32,28 +32,12 @@ RUN docker-php-ext-install bcmath
3232
RUN docker-php-ext-install pcntl
3333
RUN docker-php-ext-install intl
3434

35-
# Uncomment when xdebug supports php8.5
36-
# RUN pecl install xdebug
37-
# RUN docker-php-ext-enable xdebug
38-
# COPY ./xdebug.ini "${PHP_INI_DIR}/conf.d"
39-
40-
# ---- BEGIN TEMPORARY XEDEBUG INSTALL FROM SOURCE
41-
RUN mkdir -p /tmp/xdebug
42-
RUN curl -L https://xdebug.org/files/xdebug-3.5.0alpha3.tgz \
43-
| tar -xz -C /tmp/xdebug --strip-components=1
44-
45-
# Build and install Xdebug
46-
RUN cd /tmp/xdebug \
47-
&& phpize \
48-
&& ./configure \
49-
&& make \
50-
&& make install
51-
52-
RUN touch "${PHP_INI_DIR}/conf.d/99-xdebug.ini"
53-
RUN echo "zend_extension=xdebug" > ${PHP_INI_DIR}/conf.d/99-xdebug.ini
35+
# Install Xdebug
36+
RUN curl -L -o "pie.phar" https://github.com/php/pie/releases/download/1.3.1/pie.phar
37+
RUN php pie.phar install xdebug/xdebug
38+
RUN docker-php-ext-enable xdebug
5439
COPY ./xdebug.ini "${PHP_INI_DIR}/conf.d"
55-
RUN rm -Rf /tmp/xdebug
56-
# ---- END TEMPORARY XDEBUG INSTALL FROM SOURCE
40+
RUN rm pie.phar
5741

5842
# Install Blackfire.
5943
RUN mkdir -p /tmp/blackfire \

0 commit comments

Comments
 (0)