Repository navigation
Add PHP 8.6 image support - #330
Merged
Merged
Conversation
Build devpanel/php:8.6-base, 8.6-secure, and 8.6-advance from official php:8.6-apache (8.6.0 GA). Install PEAR when the base image has no pecl, and compile the extensions whose PECL releases do not yet support PHP 8.6. Co-authored-by: Darren Oh <darrenoh@users.noreply.github.com>
php: 8.6-apache does not ship pecl. Stop bootstrapping PEAR on that image and install redis, yaml, memcached, igbinary, Xdebug, and Imagick with PIE 1.5.5. Older images still use pecl. Sodium stays a bundled extension rebuilt against libsodium 1.0.18. Co-authored-by: Darren Oh <darrenoh@users.noreply.github.com>
Co-authored-by: Darren Oh <darrenoh@users.noreply.github.com>
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.
Summary
Adds PHP 8.6 to the bake matrix the same way existing versions are added. The official base image is
php:8.6-apache(PHP 8.6.0 GA, Debian Trixie, ZTS). It is not a release candidate.Image tags affected:
devpanel/php:8.6-basedevpanel/php:8.6-securedevpanel/php:8.6-advance8.6 is the highest version directory, so the README quick start now uses
devpanel/php:8.6-advanceas the latest stable tag. There is noLATEST_PHP_VERSIONvariable and no floatingdevpanel/php:latesttag, so 8.6 does not becomelatest.Bake defaults for
VERSIONS,VERSIONS_BASE, andVERSIONS_SECUREnow include 8.4 and 8.5 as well. Those version directories already existed and CI already built them via directory detection; they were missing from the local fallback defaults.Base image differences
php:8.6-apachedoes not ship PEAR/PECL. PHP 8.6 does not install PEAR. Third-party extensions are installed with PIE 1.5.5 (ghcr.io/php/pie:1.5.5-bin), mounted at build time and not copied into the image. PHP 8.5 and older still use pecl.php:8.5-apachebut not inphp:8.6-apache. The 8.6 overlay builds it as a shared extension withlibonig-dev.8.6/secure/Dockerfile. Secure and advance use the shared Dockerfiles.a6ce1e60b3e81ce3b25174aa5aaefd5590dc64fd(dev-develop)a7a3b8680b8fbf0895fd63371a0ffc1305b1a5b8(dev-php7)0b52d3657140750fa0eddd20cdbfc6edc8fbdadd(dev-master)2b1f5d62e3037b07c2a46499ac32091cdb41fb40(dev-master; 3.2.17RC1 does not compile)3.6.0alpha1(3.5.3 requires PHP< 8.6; 3.6 drops PHP 8.0 and 8.1, so it stays in the 8.6 overlay)55ed2e9fda264395636a2e27e51f31673f5566ab(dev-master). Upstream still calls removedzval_dtor()(The zval_dtor() alias of zval_ptr_dtor_nogc() has been removed in php 8.6 (master) Imagick/imagick#768), so that install is compiled with-Dzval_dtor=zval_ptr_dtor_nogc.docker-php-ext-install. Older images stillpecl install libsodiumagainst that same library.Replace the commit and alpha pins when releases that support PHP 8.6 are published.
Verification
./test.sh build --version 8.6exited 0 after the PIE switch. Images loaded asdevpanel-php-test:8.6-base,8.6-secure, and8.6-advance. Registry cache export tolocalhost:0failed and did not fail the build../test.sh run --version 8.6passed 48 functional checks and failed 0, including mbstring, imagick, redis, yaml, memcached, igbinary, OPcache, mod_security2, and redis-cli.No pull request template is present in the repository.