Skip to content

PHP 8.6 support - #14

Merged
danog merged 6 commits into
masterfrom
php86
Nov 20, 2026
Merged

danog merged 6 commits into
masterfrom
php86

Conversation

@danog

@danog danog commented Nov 20, 2026 •

Copy link
Copy Markdown
Owner
  • ext-php-rs ^0.16.5: the first release whose build script accepts PHP 8.6 (API 20261112); 0.16.3 refuses it.
  • CI: the tests run on PHP 8.6 too (Linux, macOS, Windows: its development packs are published since 8.6.0), and on a thread-safe build (Linux, PHP 8.6), as docker-library's images of PHP 8.6 are only ZTS. Linux jobs on ubuntu-24.04: on ubuntu-latest (26.04, x86_64) ext-php-rs's bindgen fails to generate the bindings, with errors in clang 21's xmmintrin.h/emmintrin.h (all PHP versions).
  • No fork() support: nothing using php-tokio forks, so its fork guards are gone (the runtime's PID, init() refusing after a fork, the panic of a call pending across a fork, the checks of the event loop's PID) with their three tests. They also made the tests run Revolt's loop in forked children, which revolt/event-loop 1.1's IoPollDriver (the default on PHP 8.6) doesn't survive: its epoll instance is shared with the parent, its kqueue isn't inherited.

Run locally on ZTS PHP 8.6.0 (php:8.6-cli-bookworm, arm64): the whole suite passed (before the fork tests' removal) three runs out of three. The design keeps PHP values on the PHP thread (thread-local event loops; Tokio threads only hand back Rust data through the slots, the channel and the notification socket).

@danog
danog merged commit b0bbbca into master Nov 20, 2026
16 checks passed
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