Skip to content

Add PHP 8.6 images - #275

Merged
csandanov merged 2 commits into
masterfrom
feature/php-8.6
Nov 21, 2026
Merged

csandanov merged 2 commits into
masterfrom
feature/php-8.6

Conversation

@csandanov

Copy link
Copy Markdown
Member

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.6 in every variant: 8.6, 8.6-dev, 8.6-dev-macos and 8.6-apache. The 8, latest and dev tags 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

  • CI builds, tests and scans PHP 8.6.0 for both architectures; php:8.6.0-fpm-alpine is pinned by its multi-platform digest and the -apache variant uses Apache 2.4.71.
  • install-extensions.sh installs every extension through pie_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.
  • The Dockerfile enables only the extensions that were built, builds mbstring when the base image lacks it, and strips modules in PHP's own extension directory instead of the non-thread-safe path.
  • The entrypoint renders an extension's ini file only when the module exists, and stays quiet when PHP_EXTENSIONS_DISABLE names a module recorded as unavailable. Unknown names still warn.
  • New docker-php-8.6.ini.tmpl: the 8.5 template with PHP 8.6's session defaults and include_path (PHP_INCLUDE_PATH) set to .:/usr/local/lib/php, which PEAR used to provide.
  • Tests: new php_modules/8.6; extension version, feature and functional checks skip modules the exact module list leaves out; run.sh checks 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.
  • README: PHP 8.6 tags, a note on its differences, and 8.6 columns in the configuration and extension tables.

PHP 8.6.0 status of each shipped extension:

Status Extensions
Included ast, brotli, event, mongodb, opentelemetry, uuid, xhprof
No PHP 8.6 release yet (#274) amqp, apcu, ds, grpc, igbinary, imagick, imap, memcached, New Relic, oauth, pcov, pdo_sqlsrv, protobuf, rdkafka, redis, smbclient, spx, sqlsrv, uploadprogress, xdebug, yaml

Validation

  • Built wodby/php:8.6 for linux/arm64 locally. PHP 8.6.0 (ZTS) starts without warnings, and a default container start prints nothing.
  • php -m with the test settings equals the 8.5 module list minus exactly the unavailable extensions, and includes mbstring and xhprof.
  • Locally on that image: extensions.php, the Brotli and local functional tests, PCOV/Xdebug coverage (skipped as unavailable), runtime-configuration.sh and development-tools.sh pass. extensions.php was run with the final 8.6 template mounted.
  • extensions.php still passes on wodby/php:8.5-r18.
  • CI runs the full suite, including service tests, for every PHP version, both architectures and all variants.

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.
@csandanov
csandanov merged commit 565d3dd into master Nov 21, 2026
44 checks passed
@csandanov
csandanov deleted the feature/php-8.6 branch November 21, 2026 06:24
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.

1 participant