Skip to content

Commit

Permalink
Add PHP 8.2 to build setup
Browse files Browse the repository at this point in the history
- allow PHP 8.2 to be built
- use xdebug 3.2.0RC2

See #19
  • Loading branch information
kdambekalns committed Dec 13, 2022
1 parent 2809696 commit 1d2d3f7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docker.build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
build:
strategy:
matrix:
php: [ 7.4.33, 8.0.26, 8.1.13 ]
php: [ 7.4.33, 8.0.26, 8.1.13, 8.2.0 ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand Down
6 changes: 3 additions & 3 deletions root-files/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ build_compile_php() {
--with-bz2 \
--without-pear \
>$(debug_device)
elif [[ "${PHP_VERSION}" =~ ^8.[0-1] ]]; then
elif [[ "${PHP_VERSION}" =~ ^8.[0-2] ]]; then
./configure \
--prefix=${PHP_BASE_PATH} \
--with-config-file-path="${PHP_BASE_PATH}/etc" \
Expand Down Expand Up @@ -211,7 +211,7 @@ build_compile_php() {
--without-pear \
>$(debug_device)
else
error "🛠 Unsupported PHP version ${PHP_VERSION}"
error "🛠 No configure call available for PHP version ${PHP_VERSION}"
exit 1
fi

Expand Down Expand Up @@ -430,7 +430,7 @@ case $1 in
init)
banner_flownative 'PHP'

if [[ ! "${PHP_VERSION}" =~ ^7.[1-4]|^8.[0-1] ]]; then
if [[ ! "${PHP_VERSION}" =~ ^7.[1-4]|^8.[0-2] ]]; then
error "🛠 Unsupported PHP version '${PHP_VERSION}'"
exit 1
fi
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ extensions_xdebug_runtime_packages() {
# @return string
#
extensions_xdebug_url() {
if [[ "${PHP_VERSION}" =~ ^8 ]]; then
if [[ "${PHP_VERSION}" =~ ^8.2 ]]; then
echo "https://xdebug.org/files/xdebug-3.2.0.tgz"
elif [[ "${PHP_VERSION}" =~ ^8 ]]; then
echo "https://xdebug.org/files/xdebug-3.1.6.tgz"
else
echo "https://xdebug.org/files/xdebug-2.9.8.tgz"
Expand Down

0 comments on commit 1d2d3f7

Please sign in to comment.