Skip to content

Add support for PHP 8.6 - #74

Draft
kdambekalns wants to merge 1 commit into
mainfrom
task/php-8.6
Draft

kdambekalns wants to merge 1 commit into
mainfrom
task/php-8.6

Conversation

@kdambekalns

@kdambekalns kdambekalns commented Nov 25, 2026 •

Copy link
Copy Markdown
Member

Allow building PHP 8.6 and bump extensions to versions that support it: phpredis 6.4.0RC1 and xdebug 3.6.0alpha1.

PHP 8.6 removed the XtOffsetOf() macro, so map it to offsetof() when building extensions for 8.6.

The extension list now lives in build.sh, with new build_extensions and disable_extensions commands, so the extensions can depend on the PHP version. The Dockerfile calls these instead of the single build_extension and disable_extension steps.

Images for PHP 8.6 and later no longer contain these extensions:

  • igbinary is dropped, it appears to be unmaintained
  • vips is dropped, current php-vips requires FFI

If PHP_IGBINARY_ENABLE is set and the extension is missing, PHP-FPM startup logs a warning and ignores the setting. The README documents the change.

Each extension's prepare step now runs after its packages are installed. Imagick needs this because its policy.xml replaces a file from libmagickcore. If /etc/ImageMagick-7 is missing, the build fails with an error.

The image format test reports vips as skipped on PHP 8.6. Coverage for a format no library could handle is also skipped if every library skipped it, e.g. PDF without Ghostscript. It still fails if any library failed.

@kdambekalns kdambekalns self-assigned this Nov 25, 2026
Allow building PHP 8.6 and bump extensions to versions that support
it: phpredis 6.4.0RC1 and xdebug 3.6.0alpha1.

PHP 8.6 removed the XtOffsetOf() macro, so map it to offsetof() when
building extensions for 8.6.

The extension list now lives in build.sh, with new build_extensions
and disable_extensions commands, so the extensions can depend on the
PHP version. The Dockerfile calls these instead of the single
build_extension and disable_extension steps.

Images for PHP 8.6 and later no longer contain these extensions:

- igbinary is dropped, it appears to be unmaintained
- vips is dropped, current php-vips requires FFI

If PHP_IGBINARY_ENABLE is set and the extension is missing, PHP-FPM
startup logs a warning and ignores the setting. The README documents
the change.

Each extension's prepare step now runs after its packages are
installed. Imagick needs this because its policy.xml replaces a file
from libmagickcore. If /etc/ImageMagick-7 is missing, the build fails
with an error.

The image format test reports vips as skipped on PHP 8.6. Coverage
for a format no library could handle is also skipped if every
library skipped it, e.g. PDF without Ghostscript. It still fails if
any library failed.
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