Skip to content

Add PHP 8.6 image support - #330

Merged
darrenoh merged 3 commits into
mainfrom
cursor/add-php-8.6-1fd5
Nov 22, 2026
Merged

darrenoh merged 3 commits into
mainfrom
cursor/add-php-8.6-1fd5

Conversation

@darrenoh

@darrenoh darrenoh commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

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-base
  • devpanel/php:8.6-secure
  • devpanel/php:8.6-advance

8.6 is the highest version directory, so the README quick start now uses devpanel/php:8.6-advance as the latest stable tag. There is no LATEST_PHP_VERSION variable and no floating devpanel/php:latest tag, so 8.6 does not become latest.

Bake defaults for VERSIONS, VERSIONS_BASE, and VERSIONS_SECURE now 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-apache does 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.
  • mbstring is enabled by default in php:8.5-apache but not in php:8.6-apache. The 8.6 overlay builds it as a shared extension with libonig-dev.
  • There is no Debian 11 multipart secure-stage tweak, so there is no 8.6/secure/Dockerfile. Secure and advance use the shared Dockerfiles.
  • Released packages do not compile on PHP 8.6. PIE installs pinned commits, and Xdebug 3.6.0alpha1:
    • phpredis a6ce1e60b3e81ce3b25174aa5aaefd5590dc64fd (dev-develop)
    • yaml a7a3b8680b8fbf0895fd63371a0ffc1305b1a5b8 (dev-php7)
    • memcached 0b52d3657140750fa0eddd20cdbfc6edc8fbdadd (dev-master)
    • igbinary 2b1f5d62e3037b07c2a46499ac32091cdb41fb40 (dev-master; 3.2.17RC1 does not compile)
    • Xdebug 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)
    • Imagick 55ed2e9fda264395636a2e27e51f31673f5566ab (dev-master). Upstream still calls removed zval_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.
  • Sodium is bundled. Packagist has no PIE package for it. PHP 8.6 removes the image's sodium extension, builds libsodium 1.0.18, and rebuilds sodium with docker-php-ext-install. Older images still pecl install libsodium against that same library.

Replace the commit and alpha pins when releases that support PHP 8.6 are published.

Verification

  • Dockerfile, YAML, and shell lint match the baseline.
  • ./test.sh build --version 8.6 exited 0 after the PIE switch. Images loaded as devpanel-php-test:8.6-base, 8.6-secure, and 8.6-advance. Registry cache export to localhost:0 failed and did not fail the build.
  • ./test.sh run --version 8.6 passed 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.

Open in Web Open in Cursor 

cursoragent and others added 3 commits November 20, 2026 22:09
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>
@darrenoh
darrenoh merged commit 5293f5b into main Nov 22, 2026
15 checks passed
@darrenoh
darrenoh deleted the cursor/add-php-8.6-1fd5 branch November 22, 2026 05:02
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.

2 participants