Skip to content

Commit 0445588

Browse files
committed
PHP 8.5 support. Closes #127 #129
1 parent d0f84ab commit 0445588

4 files changed

Lines changed: 19 additions & 16 deletions

File tree

Makefile

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,15 @@ COVERAGE_PHP := 7.4 3.1.1
66
PHP_8_3 := 8.3 3.3.2
77

88
define PHP_VERSIONS
9-
"7.2 3.1.1"\
10-
"7.3 3.1.1"\
11-
"7.4 3.1.1"\
12-
"8.0 3.1.1"\
13-
"8.1 3.1.1"\
14-
"8.2 3.2.0"\
15-
"8.3 3.3.2"\
16-
"8.4 3.4.0beta1"
9+
"7.2 3.1.5"\
10+
"7.3 3.1.5"\
11+
"7.4 3.1.5"\
12+
"8.0 3.4.7"\
13+
"8.1 3.4.7"\
14+
"8.2 3.4.7"\
15+
"8.3 3.4.7"\
16+
"8.4 3.4.7"\
17+
"8.5"
1718
endef
1819

1920
define DOCKER_RUN

build/build-image.sh

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,14 @@ printf "
3232
libtool \
3333
make \
3434
bash \
35-
linux-headers \
36-
&& wget http://pear.php.net/go-pear.phar && php go-pear.phar \
37-
&& pecl install xdebug-$XDEBUG_VERSION \
38-
&& docker-php-ext-enable xdebug \
39-
&& docker-php-ext-enable opcache \
40-
&& wget https://getcomposer.org/download/2.8.1/composer.phar -O /usr/local/bin/composer \
35+
linux-headers
36+
RUN if [ ! -z \"$XDEBUG_VERSION\" ]; then \
37+
wget http://pear.php.net/go-pear.phar && php go-pear.phar \
38+
&& pecl install xdebug-$XDEBUG_VERSION \
39+
&& docker-php-ext-enable xdebug; \
40+
fi
41+
RUN php -i | grep -q opcache || docker-php-ext-enable opcache
42+
RUN wget https://getcomposer.org/download/2.9.2/composer.phar -O /usr/local/bin/composer \
4143
&& chmod +x /usr/local/bin/composer
4244
" | docker build --quiet --tag "$CONTAINER_NAME" - > /dev/null
4345

build/composer-update.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/usr/bin/env sh
22

33
set -x
4-
composer --quiet update
4+
composer --quiet update || composer update

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"sort-packages": true
2222
},
2323
"require": {
24-
"php": "7.2 - 8.4"
24+
"php": "7.2 - 8.5"
2525
},
2626
"require-dev": {
2727
"ext-json": "*",

0 commit comments

Comments
 (0)