Repository navigation
Add support for PHP 8.6 - #74
Draft
kdambekalns wants to merge 1 commit into
Draft
kdambekalns wants to merge 1 commit into
kdambekalns wants to merge 1 commit into
Conversation
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
force-pushed
the
task/php-8.6
branch
from
November 25, 2026 09:25
948dd7a to
7247ac7
Compare
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.
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:
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.