Skip to content

Commit 3a28f46

Browse files
committed
Add PHP 8 support
1 parent f7ec093 commit 3a28f46

3 files changed

Lines changed: 8 additions & 5 deletions

File tree

Dockerfile-nts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ RUN EXTENSION_DIR=`php-config --extension-dir 2>/dev/null` && \
5555
vips-dev \
5656
git \
5757
$PHPIZE_DEPS \
58+
## Install PECL
59+
&& wget pear.php.net/go-pear.phar && php go-pear.phar \
5860
## Initially this was an if statement to check for PHP 7.4, but since then the situation change so we're just going to try both to avoid the conditional growing out of hand
5961
&& (docker-php-ext-configure gd --with-freetype=/usr/include/ --with-jpeg=/usr/include/ || docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/) \
6062
&& docker-php-ext-install -j$(nproc) gd pcntl pgsql pdo pdo_pgsql bcmath zip gmp iconv opcache \

Dockerfile-zts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ RUN EXTENSION_DIR=`php-config --extension-dir 2>/dev/null` && \
6060
vips-dev \
6161
git \
6262
$PHPIZE_DEPS \
63+
## Install PECL
64+
&& wget pear.php.net/go-pear.phar && php go-pear.phar \
6365
## Initially this was an if statement to check for PHP 7.4, but since then the situation change so we're just going to try both to avoid the conditional growing out of hand
6466
&& (docker-php-ext-configure gd --with-freetype=/usr/include/ --with-jpeg=/usr/include/ || docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/) \
6567
&& docker-php-ext-install -j$(nproc) gd pcntl pgsql pdo pdo_pgsql bcmath zip gmp iconv opcache \

src/php/conf/available/xdebug.ini

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
xdebug.default_enable=0
2-
xdebug.remote_enable=1
3-
xdebug.remote_host=host.docker.internal
4-
xdebug.remote_connect_back=0
5-
xdebug.profiler_enable_trigger=1
1+
xdebug.mode=coverage
2+
xdebug.client_host=host.docker.internal
3+
xdebug.discover_client_host=false
4+
xdebug.start_with_request=trigger

0 commit comments

Comments
 (0)