Repository navigation
Conversation
Copied from the three 8.5 variants and built on PHP 8.6.0RC4. - 8.6: same PHP-FPM + Caddy build on php:8.6.0RC4-fpm-trixie. - 8.6-frankenphp / 8.6-www: FrankenPHP publishes no PHP 8.6 images, so FrankenPHP 1.13.4 (which already supports 8.6) and e-dant/watcher are compiled in a builder stage following the upstream Dockerfile. Since 8.6 every official php image is ZTS with the embed SAPI (the -zts tag was dropped), so php:8.6.0RC4-cli-trixie is the base. - Add the variants to the CI matrices and generalize test-image.sh variant detection. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NHpZkQveWSKv5oAqcZ6DJC
Contributor
Author
|
All six This PR caused it, and there's no fix that can be ported in. PHP 8.6 removed several internal C APIs (UPGRADING.INTERNALS):
The fix depends on a choice about extension coverage, which I've put to the PR author. I'm not re-running the jobs, because they would fail the same way. Generated by Claude Code |
…rces PHP 8.6 removed internal C APIs (XtOffsetOf, zval_dtor, INI_STR/INT/FLT, zval_is_true, the php_verror param argument), so the current PECL releases of apcu, igbinary, imagick, redis, amqp, protobuf and grpc fail to compile. - apcu (5.1.29 release commit), igbinary and imagick: pinned upstream commits via install-php-extensions. - redis: new scripts/install-phpredis.sh builds a pinned phpredis commit with its liblzf submodule, using the same options as install-php-extensions. - amqp, protobuf, grpc: removed from the 8.6 images (and 10-grpc.ini), since no upstream code compiles on 8.6 yet. - test-image.sh checks redis separately, since it is no longer in EXTENSIONS on 8.6. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NHpZkQveWSKv5oAqcZ6DJC
php-amqp has no PHP 8.6 support upstream yet. The sctr/php-amqp php-8.6-support branch replaces XtOffsetOf() and the INI_STR/INT/FLT macros removed in 8.6 (proposed upstream to php-amqp/php-amqp) and passes the php-amqp test suite on 8.6.0RC4. Pin that commit in the three 8.6 images, and let test-image.sh map "vendor/php-name@ref" GitHub sources to their extension name. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NHpZkQveWSKv5oAqcZ6DJC
Picks up the fixes since 671e726: a use-after-free in cluster_mkey_cmd, ZSCAN against Redis 8.12, getLastError()/clearLastError() throwing after a failed connect, and additional zval type checks (plus the new BITRANGEINARRAY command). Build files (config.m4, package.xml, .gitmodules) are unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NHpZkQveWSKv5oAqcZ6DJC
- webp: Debian's webp package depends on OpenGL only for its vwebp viewer, which pulls in ~196 MB of Mesa, LLVM and libz3 (35 packages). Unpack its command-line tools (cwebp, dwebp, gif2webp, img2webp, webpinfo, webpmux) from the .deb and install only their runtime libraries. - FrankenPHP variants: set cap_net_bind_service in the builder stage. COPY keeps it, and running setcap in the final stage rewrote the 58 MB binary into a second layer. - install-phpredis.sh: strip redis.so (3.2 MB unstripped), like the extensions install-php-extensions builds. - test-image.sh: check the image optimization tools, a cwebp/dwebp round trip and the frankenphp capability (both also pass on the published 8.5 images). Also bump PHP to 8.6.0RC5, FrankenPHP to 1.13.5 and phpredis to the latest develop commit (623e8db). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NHpZkQveWSKv5oAqcZ6DJC
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NHpZkQveWSKv5oAqcZ6DJC
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.
Adds PHP 8.6 versions of the three 8.5 images. They're copied from
8.5,8.5-frankenphpand8.5-wwwand use PHP 8.6.0RC7, since 8.6.0 isn't out yet.What changed
8.6(PHP-FPM + Caddy): same build as8.5, onphp:8.6.0RC7-fpm-trixie.8.6-frankenphpand8.6-www:php8.6images yet. It has neither runtime nor-buildertags.phpimage as ZTS with the embed SAPI, and the separate-ztsvariant is gone (remove zts, instead all images are always built as zts (8.6+) docker-library/php#1686).php:8.6.0RC7-cli-trixieis therefore the base.8.6-frankenphpis built the same way as the upstream binary, so it includes Mercure, Vulcain and brotli.8.6-wwwuses xcaddy with the same extra modules as8.5-www(jwt, ratelimit, redis storage).GODEBUG, exposed ports and thedocker-php-entrypointtweak. It has noCMD, matching the published 8.5 images.Extensions. PHP 8.6 removed internal C APIs:
XtOffsetOf(),zval_dtor(),INI_STR/INT/FLT,zval_is_true(), and theparamargument ofphp_verror(). I built each extension on its own againstphp:8.6.0RC4-cli-trixie:krakjoe/apcu@66300e2(the 5.1.29 release commit)igbinary/igbinary@2b1f5d6(master)Imagick/imagick@55ed2e9(master)liblzfsubmodule, so install-php-extensions can't install itscripts/install-phpredis.shfromphpredis/phpredis@623e8db(develop,PHPREDIS_REF), with the same options as install-php-extensions (igbinary, lzf, zstd, lz4), strippedlatestfail, also with Replace XtOffsetOf() with offsetof() for PHP 8.6 php-amqp/php-amqp#619 appliedsctr/php-amqp@7a4318b: thephp-8.6-supportbranch of our fork, proposed upstream. It passes the php-amqp test suite on 8.6.0RC4 (184 passed, 0 failed)zval_dtor10-grpc.iniremoved too)XtOffsetOfImage size. Two changes that are specific to the 8.6 images:
webppackage depends on OpenGL only for itsvwebpviewer, and that pulls in 35 packages: Mesa, LLVM and libz3, about 196 MB. The images now unpack its command-line tools (cwebp,dwebp,gif2webp,img2webp,webpinfo,webpmux) from the.deband install only their runtime libraries.vwebpis not included.cap_net_bind_serviceis set in the builder stage, andCOPYkeeps it. Runningsetcapin the final stage had rewritten the 58 MB binary into a second layer.Measured locally on RC5 (uncompressed):
8.6went from 1,583 to 1,305 MB (−278 MB),8.6-frankenphpfrom 1,744 to 1,389 MB (−355 MB), and8.6-wwwis now 1,316 MB.ini files, entrypoints, supervisor and Caddy configs are unchanged from 8.5. The defensive CVE-2026-109619 ini settings are kept even though the 8.6 RCs already contain the fix.
CI: all three 8.6 variants are added to the amd64, arm64 and manifest matrices.
scripts/test-image.sh:-www,-frankenphp, or none) instead of hard-coding8.5.redisexplicitly, because on 8.6 redis isn't inEXTENSIONS.vendor/php-name@refsources to the extension name, sosctr/php-amqp@…is checked asamqp.cwebp/dwebpround trip, and checks thefrankenphpcapability. These checks also pass on the published 8.5 images.README and CLAUDE.md are updated, including a "PHP 8.6 images" section.
Testing
Built locally on amd64 and checked with
scripts/test-image.sh✅. That covers extensions, OPcache, Imagick, Composer, libvips, the image tools, Caddy modules, the FrankenPHP capability and the entrypoint checks.8.6-wwwpasses;8.6-frankenphpand8.6are covered by CI on both architectures.Earlier checks:
scripts/install-phpredis.shafter igbinary, round-trips igbinary-serialized values through Redis 8.10 with zstd, lz4 and lzf compression.Follow-up
PHP_VERSIONin the three 8.6 Dockerfiles as new RCs come out and at 8.6.0 GA. A daily scheduled check does this and watches for extension releases.10-grpc.ini.php8.6images, the FrankenPHP variants can go back to thedunglas/frankenphpbase.🤖 Generated with Claude Code
https://claude.ai/code/session_01NHpZkQveWSKv5oAqcZ6DJC