Repository navigation
Conversation
WordPress 7.2 adds support for PHP 8.6, so the pre-release ("beta") images
now include PHP 8.6 variants built from the upstream `php:8.6-rc-*` images.
The `latest` and `cli` channels are unchanged.
PHP 8.6 images no longer ship pear/pecl or a compiled-in mbstring
(docker-library/php#1654), so for 8.6:
- mbstring is installed via docker-php-ext-install
- imagick is built from the checksum-verified PECL source tarball via
docker-php-ext-install instead of `pecl install`
Note: the generated beta/php8.6/* Dockerfiles have not been produced yet
(run ./apply-templates.sh beta).
Gate PHP 8.6 on the WordPress version rather than the release channel, so any 7.1.x release (including a 7.1.x point release or RC that lands in the "latest" or "beta" channel) never receives PHP 8.6 images, while 7.2 pre-releases and the 7.2 release itself (and later) do.
No imagick release compiles against PHP 8.6: 3.8.1 still uses zval_dtor() and XtOffsetOf(), both removed in PHP 8.6 (see php-src UPGRADING.INTERNALS). The XtOffsetOf fix (Imagick/imagick#795) is merged but unreleased, and the zval_dtor fix (Imagick/imagick#768) is still open. Installing imagick without pecl is also pending docker-library#1001 (pie). Until then, PHP 8.6 images skip imagick and its build-only -dev packages; WordPress falls back to GD for image processing. The PHP 8.2-8.5 output is unchanged.
desrosj
marked this pull request as ready for review
November 5, 2026 01:51
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
WordPress 7.2 (currently in beta) adds support for PHP 8.6. This PR adds PHP 8.6 variants so the ecosystem can test against them during the 7.2 pre-release cycle. In #986 there was some interest in exploring PHP pre-release support "assuming WordPress upstream supports the given pre-release version", and that's the case here.
Changes
versions.sh/versions.json:8.6is added tophpVersionsonly when the WordPress version is 7.2 or later. The check usesfullVersionrather than the channel name, so no 7.1.x release (including a 7.1.x point release or RC) ever gets PHP 8.6 images.cli(WP-CLI) is unchanged.Dockerfile.template:FROM php:8.6-rc-<variant>while 8.6 is only available as a release candidate (is_php_rc, to be removed at GA).mbstring(Drop--with-pearwith PHP 8.6 php#1654), so for 8.6mbstringis installed withdocker-php-ext-install(pluslibonig-dev/oniguruma-dev).zval_dtor()andXtOffsetOf(), which were removed in 8.6 (php-srcUPGRADING.INTERNALS). TheXtOffsetOffix (XtOffsetOf is removed in 8.6, use standard C offsetof Imagick/imagick#795) is merged but unreleased; thezval_dtorfix (The zval_dtor() alias of zval_ptr_dtor_nogc() has been removed in php 8.6 (master) Imagick/imagick#768) is still open. Installing imagick without pecl is also pending Migrate to pie for installing imagick #1001. WordPress falls back to GD for image processing in the meantime.Rendered output for PHP 8.2–8.5 and
cliis byte-identical to what's currently committed.Notes
is_php_rcneeds to be dropped so the images move fromphp:8.6-rc-*tophp:8.6-*.Still to do (why this is a draft)
./apply-templates.shand commit the generatedbeta/php8.6/*directoriesapache,fpmandfpm-alpineon 8.6AI Disclaimer
This PR was generated with Claude Opus 5.5 and manually reviewed by me.