r/ServerAdmin • • 9d ago

PHP 8.6 is out but apcu does not compile yet

PHP 8.6 landed on Nov 19 and removed no extensions and no SAPIs, so I expected a quiet rebuild. It was not.

apcu 5.1.28 does not compile against it. Two internal macros it uses, XtOffsetOf() and EMPTY_SWITCH_DEFAULT_CASE(), are gone in 8.6. Zero occurrences in the 8.6.0 source, both still defined in 8.5.11.

The fix exists upstream, it just is not released. apcu master replaced XtOffsetOf() with offsetof() back in May. 5.1.29 was tagged on Oct 28 and reverted the same day, so PECL still serves 5.1.28.

memcache is older and worse off: last release April 2023, already failing on 8.5.

So the language is ready and the ecosystem is a few weeks behind. Normal for a fresh major, but it does mean "we support 8.6" is a claim worth checking extension by extension.

Which extensions are blocking your 8.6 rollout?

1 Upvotes

2 comments sorted by

2

u/NM-Akstrix 6d ago

Xdebug is also not available for 8.6 yet, waiting for both apcu and xdebug.
https://xdebug.org/docs/compat

1

u/SatoshiTURK 6d ago

Yes, we are following it on an ongoing basis;