Skip to content

The zval_dtor() alias of zval_ptr_dtor_nogc() has been removed in php 8.6 (master) - #408

Merged
tricky merged 1 commit into
igbinary:masterfrom
fork-php:zval_ptr_dtor_nogc
Jul 27, 2026
Merged

tricky merged 1 commit into
igbinary:masterfrom
fork-php:zval_ptr_dtor_nogc

Conversation

@k0d3r1s

@k0d3r1s k0d3r1s commented Dec 4, 2025

Copy link
Copy Markdown

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

Call zval_ptr_dtor_nogc() directly instead
@tricky

tricky commented Dec 4, 2025

Copy link
Copy Markdown
Member

Well that failed spectacularly. :)

@k0d3r1s

k0d3r1s commented Dec 6, 2025

Copy link
Copy Markdown
Author

@tricky none of failures seems to be related to my changes. looks like missing slash in action somewhere, at least for linux builds

@andrew-demb

andrew-demb commented Dec 6, 2025 •

Copy link
Copy Markdown

It is an invalid redirect location got from secure.php.net for the distribution archive

@tricky

tricky commented Dec 6, 2025

Copy link
Copy Markdown
Member

Yes, hence the smiley. :)

@andypost

Copy link
Copy Markdown

@madmajestro

Copy link
Copy Markdown

@andypost
Yes, you are right, but before that commit, a function with the name _zval_ptr_dtor_nogc() existed and according to it a define which mapped zval_ptr_dtor_nogc() to _zval_ptr_dtor_nogc(). This means that zval_ptr_dtor_nogc() was already available before PHP 7.0 and that this PR will work for all old PHP 7.x versions supported by igbinary.

@andypost

andypost commented May 5, 2026

Copy link
Copy Markdown

@madmajestro exactly since 7.0 the function introduced, ref php/php-src@9e753531842

@remicollet

Copy link
Copy Markdown

I confirm the fix is OK (tested with 7.4.33 and 8.6.0alpha2)

@wyattoday

Copy link
Copy Markdown

We made the change locally too, and it works for us. Looking forward to this being merged.

@pavetheway91

Copy link
Copy Markdown

Could more people be added to the GitHub organization?

A trivial build fix shouldn't take 7+ months to merge and 8 people commenting it.

@tricky
tricky merged commit 1b8efc5 into igbinary:master Jul 27, 2026
nono303 pushed a commit to nono303/win-build-scripts that referenced this pull request Oct 16, 2026
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)
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.

8 participants