Skip to content

Commit

Permalink
Merge pull request #1346 from brefphp/fix-php74
Browse files Browse the repository at this point in the history
  • Loading branch information
mnapoli authored Dec 9, 2022
2 parents 3ddd4cb + 33f256e commit 3d99880
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions runtime/layers/fpm-dev/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ FROM bref/build-php-$PHP_VERSION as build_extensions
# Re-expose the arg again inside this "FROM" block
ARG PHP_VERSION

RUN if [ "$PHP_VERSION" -ne "73" ]; then pecl install xdebug; fi
RUN if [ "$PHP_VERSION" -eq "73" ]; then pecl install xdebug-3.1.6; fi
RUN if [[ "$PHP_VERSION" != 7* ]]; then pecl install xdebug; fi
RUN if [[ "$PHP_VERSION" == 7* ]]; then pecl install xdebug-3.1.6; fi
RUN cp $(php -r "echo ini_get('extension_dir');")/xdebug.so /tmp

RUN version=$(php -r "echo PHP_MAJOR_VERSION.PHP_MINOR_VERSION;") \
Expand Down

0 comments on commit 3d99880

Please sign in to comment.