Repository navigation
Conversation
Call zval_ptr_dtor_nogc() directly instead
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>
1 of 2 tasks
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.
7 tasks
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).
octo-sts Bot
pushed a commit
to wolfi-dev/os
that referenced
this pull request
Nov 20, 2026
Start php-8.6-imagick (3.8.1) from the php-8.5-imagick recipe with name and epoch reset, as #72470 did for the 8.5 stream. PHP 8.6 removed the XtOffsetOf() alias and zval_dtor(), so imagick 3.8.1 does not compile against it. Cherry-pick upstream master b580a705 (PR #795) and carry the still open upstream pull request Imagick/imagick#768 as fix-build-with-php-8.6.patch. The recipe was built and tested on x86_64 and aarch64 against PHP 8.6.0RC5 before the 8.6.0 release. Against the released php-8.6 package, the build and the package tests are those of the pull request's CI. Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com> Export: 767f904748b4254333cb7687b42e5a14adbfdb62
1 task done
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.
Hi. Tried building against php master branch and this issue jumped out.
php UPGRADING.INTERNALS says: "The zval_dtor() alias of zval_ptr_dtor_nogc() has been removed. Call zval_ptr_dtor_nogc() directly instead.".
So as this is purely removed alias, this seems to be a trivial fix