Skip to content

feat(php8.6) Add PHP 8.6 base packages - #202

Merged
nickschuch merged 6 commits into
mainfrom
t3/add-php-8-6-support
Nov 22, 2026
Merged

nickschuch merged 6 commits into
mainfrom
t3/add-php-8-6-support

Conversation

@nickschuch

@nickschuch nickschuch commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Adds PHP 8.6.0 (released 19 Nov 2026). For now this ships the base PHP packages only. None of our extensions build against 8.6.0 yet, so they stay out until upstream releases support it.

  • Add packages/php8.6 for PHP 8.6.0 (API version 20261112), based on php8.5. It includes install-pear.patch unchanged; pear/Makefile.frag is identical in 8.5.13 and 8.6.0.
  • Switch the configure flag --with-pic to --enable-pic. PHP 8.6 upgraded its bundled libtool to 2.5.4, which treats the old flag as an error (see UPGRADING.INTERNALS).
  • Keep the FPM log_limit = 8192 pin from 8.5. The php-fpm.conf template is unchanged in 8.6, and the build/Dockerfile comment now says "8.5+".
  • Add 8.6 to the build.yml and release.yml matrices.
  • Skip every extension for 8.6 in build/entrypoint, and don't add their packages/php8.6-* directories yet.
  • Document in README.md what each extension is waiting on, and how to add one back.

Extensions waiting on upstream

Extension Waiting on
apcu A release of the fix already on master. 5.1.29 was tagged then reverted (krakjoe/apcu#634).
compass A release of our own extension with a phper version that compiles against the 8.6.0 headers.
grpc Not built for 8.5 either. Revisit after the others.
imagick The fix to be merged (Imagick/imagick#768) and released (#804).
memcached A release of the fix already on master (php-memcached-dev/php-memcached#586).
redis The fix to be merged (phpredis/phpredis#2831) and released.
spx A release with 8.6 support, merged on master in NoiseByNorthwest/php-spx#353.
xdebug A release with 8.6 support. 3.5.x refuses to configure against 8.6, but master allows it.

Before merging

  • Upload php-8.6.0.tar.bz2 to https://packages.skpr.io/distributions/. It currently returns a 403, which is why the 8.6 CI jobs fail. The php.net tarball matches its published sha256 (9e233e38…11ff1), and its sha512 is in packages/php8.6/APKBUILD. The 8.4 jobs weren't failures: they were cancelled when the 8.6 jobs failed.

Testing

  • Local Docker build (Alpine 3.23, x86_64) of the 8.6 set, with the tarball pre-seeded because the mirror doesn't have it yet. php8.6 and all its subpackages build (-fpm, -dev, -pear, -intl, -pdo_mysql, etc.).
  • Built each extension against 8.6.0 before skipping it:
    • apcu fails on 5.1.27 and on 5.1.28 (php_verror, XtOffsetOf).
    • compass fails: unresolved ZEND_USER_FUNCTION / HASH_KEY_IS_* in the phper bindings.
    • spx fails with #error "Only ... 5.4 to 8.5".
  • Not built: imagick, memcached and redis. Scanning their sources found removed APIs (redis uses zval_dtor 208 times).
  • Not built: xdebug. Its config.m4 rejects PHP >= 8.6.0.
  • Checked that build/entrypoint resolves 8.6 to libxlsxwriter paxmark php8.6, and that the 8.5 package list is unchanged.
  • Not tested: arm64 locally. That's covered by the ubuntu-24.04-arm CI job once the tarball is mirrored.

🤖 Generated with Claude Code

nickschuch and others added 6 commits November 21, 2026 02:03
- Add php8.6 core package with PEAR install patch
- Add php8.6 extension packages: apcu, compass, grpc, imagick, memcached, redis, spx, xdebug
- Add 8.6 to the build and release workflow matrices
- Skip grpc and xdebug for 8.6 in build/entrypoint, since xdebug 3.5.x refuses to configure against PHP >= 8.6.0
- Pin php-fpm log_limit to 8192 for 8.6, matching the 8.5 behaviour
- Replace --with-pic with --enable-pic in the php8.6 build configure options
Building the 8.6 package set against PHP 8.6.0 showed that none of the
extensions compile yet:

- apcu, imagick, memcached and redis still use compatibility macros
  PHP 8.6.0 removed (zval_dtor, XtOffsetOf, etc.)
- compass's phper bindings don't compile against the 8.6.0 headers
- spx 0.4.22 hard-errors on anything newer than PHP 8.5

Ship the PHP 8.6 core packages for now and re-enable each extension as
upstream releases support 8.6, as we did when 8.5 launched.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…pport

Remove the php8.6 extension package directories that are skipped in
build/entrypoint. They will be recreated from their php8.5 counterparts
once upstream releases support PHP 8.6.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@nickschuch nickschuch changed the title feat(php8.6) Add PHP 8.6 packages and build support feat(php8.6) Add PHP 8.6 base packages Nov 21, 2026
@nickschuch
nickschuch merged commit 55620a1 into main Nov 22, 2026
6 of 10 checks passed
@nickschuch
nickschuch deleted the t3/add-php-8-6-support branch November 22, 2026 23:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants