Skip to content

Fix PHP 8.6 builds - #2884

Merged
michael-grunder merged 1 commit into
developfrom
fix/php86-builds
Jun 29, 2026
Merged

michael-grunder merged 1 commit into
developfrom
fix/php86-builds

Conversation

@michael-grunder

Copy link
Copy Markdown
Member
  • USe the new PHP 8.6 zned_ini_<type> helpers and define them in older versions of PHP
  • Switch from XtOffsetof to offsetof
  • User ZEND_UNREACHABLE instead of ZEND_EMPTY_SWITCH_CASE

* USe the new PHP 8.6 `zned_ini_<type>` helpers and define them in older
  versions of PHP
* Switch from `XtOffsetof` to `offsetof`
* User `ZEND_UNREACHABLE` instead of `ZEND_EMPTY_SWITCH_CASE`
@michael-grunder
michael-grunder merged commit 78c1c69 into develop Jun 29, 2026
86 checks passed
@michael-grunder
michael-grunder deleted the fix/php86-builds branch June 29, 2026 23:01
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.

1 participant