Repository navigation
Fix build with PHP 8.6 - #23
Merged
Merged
Conversation
PHP 8.6 removed the XtOffsetOf() alias and the INI_STR() macro. Use offsetof() directly, and zend_ini_string_literal() with a fallback to INI_STR() for PHP < 8.6. Co-Authored-By: Claude Opus 5.5
3 of 4 tasks
tomas-kulhanek
added a commit
to tomas-kulhanek/docker-php
that referenced
this pull request
Nov 20, 2026
IMAP 1.0.3 does not compile on PHP 8.6, so for 8.6 PIE installs IMAP from the pinned upstream commit with the 8.6 build fix (php/pecl-mail-imap#23). PHP 8.3-8.5 keep the released IMAP 1.0.3. The released PIE extensions do not compile on 8.6 yet, so 8.6 runs only as an experimental CI smoke job and is not published to GHCR. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
PHP 8.6 removed two macros this extension relies on (see UPGRADING.INTERNALS):
XtOffsetOf()was an alias ofoffsetof(); useoffsetof()directly.INI_STR()is replaced byzend_ini_string_literal(), as php-src did inext/standard/mail.c. A fallback toINI_STR()keeps PHP 8.3 to 8.5building. Both return
NULLfor a missing entry, so thesendmail_pathcheck behaves as before.
#22 covered
XtOffsetOf()only and was closed unmerged.