Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ jobs:
- "3.23"
php:
- "8.4"
- "8.6"
runs-on: ${{ matrix.build_image }}
steps:
- name: ↙️ Checkout
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:
- "8.3"
- "8.4"
- "8.5"
- "8.6"
runs-on: ${{ matrix.build_image }}
steps:
- name: ↙️ Checkout
Expand Down
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,26 @@ RUN apk add --no-cache curl ca-certificates && \
echo "https://packages.skpr.io/php-alpine/${ALPINE_VERSION}/php${PHP_VERSION}" >> /etc/apk/repositories
```

## PHP 8.6

PHP 8.6 currently ships the base PHP packages only (`php8.6` and its bundled extensions, eg. `php8.6-fpm`, `php8.6-intl`, `php8.6-pdo_mysql`).

None of our extensions build against PHP 8.6.0 yet. Most still use compatibility macros that PHP 8.6.0 removed (`zval_dtor`, `zval_is_true`, `XtOffsetOf`, etc.).
We are waiting on the following before adding each one back:

| Extension | Current release | Waiting on |
|-----------|-----------------|------------|
| apcu | 5.1.28 | A release with the fix already on master. 5.1.29 was tagged then reverted ([krakjoe/apcu#634](https://github.com/krakjoe/apcu/issues/634)). |
| compass | 1.1.0 | Our own extension. Needs a release with a phper version that compiles against the PHP 8.6.0 headers ([skpr/compass-extension](https://github.com/skpr/compass-extension)). |
| grpc | 1.85.4 | Not built for PHP 8.5 either. Revisit after the other extensions. |
| imagick | 3.8.1 | The fix to be merged ([Imagick/imagick#768](https://github.com/Imagick/imagick/pull/768)) and released ([Imagick/imagick#804](https://github.com/Imagick/imagick/issues/804)). |
| memcached | 3.4.0 | A release with the fix already on master ([php-memcached-dev/php-memcached#586](https://github.com/php-memcached-dev/php-memcached/issues/586)). |
| redis | 6.3.0 | The fix to be merged ([phpredis/phpredis#2831](https://github.com/phpredis/phpredis/pull/2831)) and released. |
| spx | 0.4.22 | A release with PHP 8.6 support, merged on master in [NoiseByNorthwest/php-spx#353](https://github.com/NoiseByNorthwest/php-spx/pull/353). |
| xdebug | 3.5.3 | A release with PHP 8.6 support. 3.5.x refuses to build against PHP 8.6, master already allows it ([xdebug/xdebug](https://github.com/xdebug/xdebug)). |

Skipped extensions are listed in `build/entrypoint`. To add one back, create `packages/php8.6-<extension>` from its `packages/php8.5-<extension>` counterpart, bump it to a release with PHP 8.6 support, mirror the tarball and remove it from the exclude list.

## Local Development

**Generate Keys**
Expand Down
4 changes: 2 additions & 2 deletions build/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ FROM alpine:${ALPINE_VERSION}
# (https://serverfault.com/questions/1017932/php-fpm-notice-the-log-buffer-is-full-1024-the-access-log-request-has-been).
# It only has an effect on PHP 8.2 and 8.3 out of the box: 8.4 dropped the #ifdef it
# relies on (php/php-src#5634), which packages/php8.4/fpm-log-buffer.patch restores,
# and 8.5 replaced the buffer entirely with the runtime "log_limit" setting, which
# packages/php8.5/APKBUILD pins to 8192 in php-fpm.conf.
# and 8.5+ replaced the buffer entirely with the runtime "log_limit" setting, which
# packages/php8.5/APKBUILD and packages/php8.6/APKBUILD pin to 8192 in php-fpm.conf.
# -D_LARGEFILE_SOURCE and -D_FILE_OFFSET_BITS=64 (https://www.php.net/manual/en/intro.filesystem.php)
ENV PHP_CFLAGS="-fstack-protector-strong -fpic -fpie -O2 -DMAX_LINE_LENGTH=8192 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
ENV PHP_CPPFLAGS="$PHP_CFLAGS"
Expand Down
23 changes: 23 additions & 0 deletions build/entrypoint
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,29 @@ if [ "$PHP_VERSION" == "8.5" ]; then
done
fi

# Temporary workaround for unavailable packages for PHP 8.6. These have no
# packages/php8.6-* directory until upstream supports PHP 8.6.
# Xdebug 3.5.x refuses to configure against PHP >= 8.6.0, and the current
# apcu, imagick, memcached and redis releases still use compatibility macros
# that PHP 8.6.0 removed (zval_dtor, XtOffsetOf, etc.). Compass's phper
# bindings don't compile against the PHP 8.6.0 headers yet, and spx 0.4.22
# hard-errors on anything newer than PHP 8.5.
if [ "$PHP_VERSION" == "8.6" ]; then
exclude_packages=(
"php${PHP_VERSION}-apcu"
"php${PHP_VERSION}-compass"
"php${PHP_VERSION}-grpc"
"php${PHP_VERSION}-imagick"
"php${PHP_VERSION}-memcached"
"php${PHP_VERSION}-redis"
"php${PHP_VERSION}-spx"
"php${PHP_VERSION}-xdebug"
)
for i in "${exclude_packages[@]}"; do
packages=(${packages[@]//*$i*})
done
fi

for package in "${packages[@]}"; do
echo "Building Package: ${package}"

Expand Down
Loading