Skip to content

XtOffsetOf is removed in 8.6, use standard C offsetof - #795

Merged
bukka merged 1 commit into
Imagick:masterfrom
NattyNarwhal:offset
Jul 20, 2026
Merged

bukka merged 1 commit into
Imagick:masterfrom
NattyNarwhal:offset

Conversation

@NattyNarwhal

Copy link
Copy Markdown
Contributor

No description provided.

@remicollet

Copy link
Copy Markdown
Contributor

Fix confirmed with 8.6.0alpha2

@bukka

bukka commented Jul 20, 2026

Copy link
Copy Markdown
Collaborator

This is like super annoying - we should keep XtOffsetOf and just deprecate it.

@bukka
bukka merged commit b580a70 into Imagick:master Jul 20, 2026
desrosj added a commit to desrosj/docker-library-wordpress that referenced this pull request Nov 5, 2026
No imagick release compiles against PHP 8.6: 3.8.1 still uses zval_dtor()
and XtOffsetOf(), both removed in PHP 8.6 (see php-src UPGRADING.INTERNALS).
The XtOffsetOf fix (Imagick/imagick#795) is merged but unreleased, and the
zval_dtor fix (Imagick/imagick#768) is still open. Installing imagick
without pecl is also pending docker-library#1001 (pie).

Until then, PHP 8.6 images skip imagick and its build-only -dev packages;
WordPress falls back to GD for image processing. The PHP 8.2-8.5 output
is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
desrosj added a commit to desrosj/docker-library-wordpress that referenced this pull request Nov 5, 2026
No imagick release compiles against PHP 8.6: 3.8.1 still uses zval_dtor()
and XtOffsetOf(), both removed in PHP 8.6 (see php-src UPGRADING.INTERNALS).
The XtOffsetOf fix (Imagick/imagick#795) is merged but unreleased, and the
zval_dtor fix (Imagick/imagick#768) is still open. Installing imagick
without pecl is also pending docker-library#1001 (pie).

Until then, PHP 8.6 images skip imagick and its build-only -dev packages;
WordPress falls back to GD for image processing. The PHP 8.2-8.5 output
is unchanged.
tianon pushed a commit to docker-library/wordpress that referenced this pull request Nov 19, 2026
* Add PHP 8.6 (RC) images to the beta channel

WordPress 7.2 adds support for PHP 8.6, so the pre-release ("beta") images
now include PHP 8.6 variants built from the upstream `php:8.6-rc-*` images.
The `latest` and `cli` channels are unchanged.

PHP 8.6 images no longer ship pear/pecl or a compiled-in mbstring
(docker-library/php#1654), so for 8.6:
- mbstring is installed via docker-php-ext-install
- imagick is built from the checksum-verified PECL source tarball via
  docker-php-ext-install instead of `pecl install`

Note: the generated beta/php8.6/* Dockerfiles have not been produced yet
(run ./apply-templates.sh beta).

* Only build PHP 8.6 images for WordPress 7.2+

Gate PHP 8.6 on the WordPress version rather than the release channel, so
any 7.1.x release (including a 7.1.x point release or RC that lands in the
"latest" or "beta" channel) never receives PHP 8.6 images, while 7.2
pre-releases and the 7.2 release itself (and later) do.

* Skip imagick for PHP 8.6

No imagick release compiles against PHP 8.6: 3.8.1 still uses zval_dtor()
and XtOffsetOf(), both removed in PHP 8.6 (see php-src UPGRADING.INTERNALS).
The XtOffsetOf fix (Imagick/imagick#795) is merged but unreleased, and the
zval_dtor fix (Imagick/imagick#768) is still open. Installing imagick
without pecl is also pending #1001 (pie).

Until then, PHP 8.6 images skip imagick and its build-only -dev packages;
WordPress falls back to GD for image processing. The PHP 8.2-8.5 output
is unchanged.

* Run apply-templates.sh

* Use "8.6-rc" as the PHP version instead of RC-specific logic

Embedding "8.6-rc" directly in phpVersions makes the FROM values and image
tags (php8.6-rc) correct automatically, so is_php_rc is no longer needed.

Also drop the WordPress version gate in favor of only adding 8.6-rc to the
beta channel, since only a single version of WordPress is supported at a
time (#701).
henderkes pushed a commit to php/frankenphp that referenced this pull request Nov 20, 2026
Builds the static binaries with PHP 8.6.

Some extensions aren't compatible with 8.6 yet, so I switched to their
development version or to Pull Requests adding support:

| Extension | Source | PHP 8.6 patches included |
|---|---|---|
| amqp |
[remicollet/php-amqp@issue-php86a2](https://github.com/remicollet/php-amqp/tree/issue-php86a2)
| [php-amqp/php-amqp#638](php-amqp/php-amqp#638)
(not merged) |
| lz4 |
[dunglas/php-ext-lz4@fix/static-zts-tsrm-cache](https://github.com/dunglas/php-ext-lz4/tree/fix/static-zts-tsrm-cache)
| [kjdev/php-ext-lz4#48](kjdev/php-ext-lz4#48)
(not merged) |
| apcu | [krakjoe/apcu@master](https://github.com/krakjoe/apcu) |
[#605](krakjoe/apcu#605),
[#616](krakjoe/apcu#616),
[#621](krakjoe/apcu#621),
[#630](krakjoe/apcu#630) |
| igbinary |
[igbinary/igbinary@master](https://github.com/igbinary/igbinary) |
[#408](igbinary/igbinary#408),
[#419](igbinary/igbinary#419) |
| imagick | [Imagick/imagick@master](https://github.com/Imagick/imagick)
| [#795](Imagick/imagick#795) |
| memcached |
[php-memcached-dev/php-memcached@master](https://github.com/php-memcached-dev/php-memcached)
| [#580](php-memcached-dev/php-memcached#580) |
| msgpack |
[msgpack/msgpack-php@master](https://github.com/msgpack/msgpack-php) |
[#185](msgpack/msgpack-php#185) |
| redis |
[phpredis/phpredis@develop](https://github.com/phpredis/phpredis/tree/develop)
| [#2884](phpredis/phpredis#2884),
[#2888](phpredis/phpredis#2888) |
| xlswriter |
[viest/php-ext-xlswriter@master](https://github.com/viest/php-ext-xlswriter)
| [#591](viest/php-ext-xlswriter#591) |

I also temporiraly removed protobuf, until a release includes
[protocolbuffers/protobuf#31752](protocolbuffers/protobuf#31752).
(the `google/protobuf` Composer package still works without the
extension)
tekmanic added a commit to tekmanic/deb-wordpress that referenced this pull request Nov 23, 2026
The floating php:apache-trixie tag moved to PHP 8.6, where imagick 3.8.1
(latest PECL) fails to compile: XtOffsetOf was removed in PHP 8.6 and the
upstream fix (Imagick/imagick#795) is not yet released. This broke CI on a
fresh runner (local builds were masked by stale layer cache).

Pinning to 8.5-apache-trixie restores the exact runtime the image has been
serving in production (PHP 8.5) and makes the build deterministic.
Verified with a full --no-cache rebuild + boot test (wp-admin 302).
guillaume-sainthillier added a commit to silarhi/symfony-docker-ci that referenced this pull request Nov 25, 2026
imagick 3.8.1 uses XtOffsetOf, removed in PHP 8.6: the fix (Imagick/imagick#795)
is on master but not released yet. Pinned to that commit until 3.8.2 is on PECL.
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.

3 participants