Repository navigation
Add PHP 8.6 images - #275
Merged
Merged
Conversation
Build and publish wodby/php 8.6 (PHP 8.6.0) in every variant. The 8, latest and dev tags stay on 8.5. The official PHP 8.6 images are thread-safe only, are built without PEAR and no longer compile mbstring in. The 8.6 images build mbstring themselves and keep /usr/local/lib/php on the include path. Their sessions use PHP 8.6's defaults: strict mode, HttpOnly cookies and SameSite=Lax. Extensions without a PHP 8.6 release are skipped through a per-version list in install-extensions.sh (New Relic and SPX in the Dockerfile) and recorded in the image, so the entrypoint neither configures them nor warns when the default PHP_EXTENSIONS_DISABLE names them. #274 tracks them. Tests keep the exact per-version module list and skip checks for modules that list leaves out. The Dockerfile now strips modules in PHP's own extension directory, which differs on thread-safe builds.
# Conflicts: # base-images.mk
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.
Problem
PHP 8.6.0 was released on 2026-11-19, and there are no wodby/php images for it yet.
Cause
PHP 8.6 cannot be added as just another version. The official PHP 8.6 images are thread-safe only, are built without PEAR, and no longer include mbstring. Most PECL extensions we ship have no release that builds on PHP 8.6 yet.
Solution
Publish
wodby/php:8.6in every variant:8.6,8.6-dev,8.6-dev-macosand8.6-apache. The8,latestanddevtags stay on PHP 8.5, because PHP 8.6 still lacks common extensions such as APCu, Redis and Xdebug.The PHP 8.6 images include mbstring and keep the same include path as earlier versions. Their sessions follow PHP 8.6's own defaults: strict mode, HttpOnly cookies and
SameSite=Lax. Extensions without a PHP 8.6 release are left out of these images until upstream releases support. #274 lists them and how to add each one back. PHP 8.2–8.5 images keep every extension and their current behavior.Changes
php:8.6.0-fpm-alpineis pinned by its multi-platform digest and the-apachevariant uses Apache 2.4.71.install-extensions.shinstalls every extension throughpie_for/source_for, which skip the modules listed for the running PHP version. The Dockerfile skips New Relic and SPX on PHP 8.6. Skipped modules are recorded in/usr/local/etc/php/unavailable-extensions.PHP_EXTENSIONS_DISABLEnames a module recorded as unavailable. Unknown names still warn.docker-php-8.6.ini.tmpl: the 8.5 template with PHP 8.6's session defaults andinclude_path(PHP_INCLUDE_PATH) set to.:/usr/local/lib/php, which PEAR used to provide.php_modules/8.6; extension version, feature and functional checks skip modules the exact module list leaves out;run.shchecks Redis, Event and the New Relic daemon only where the version should have them, and fails if a default container start prints a disable warning. The Brotli functional test now uses the extension's name.PHP 8.6.0 status of each shipped extension:
Validation
wodby/php:8.6for linux/arm64 locally. PHP 8.6.0 (ZTS) starts without warnings, and a default container start prints nothing.php -mwith the test settings equals the 8.5 module list minus exactly the unavailable extensions, and includes mbstring and xhprof.extensions.php, the Brotli and local functional tests, PCOV/Xdebug coverage (skipped as unavailable),runtime-configuration.shanddevelopment-tools.shpass.extensions.phpwas run with the final 8.6 template mounted.extensions.phpstill passes onwodby/php:8.5-r18.