From df6d83c1b73d2fcd8d12e3288560bfd7d0de9d9d Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 21 Nov 2026 00:15:03 +0000 Subject: [PATCH 1/2] ci: run every job on PHP 8.6 alongside 8.4 and 8.5 The z-engine constraint gains ~8.6.0@dev (8.6.x-dev until z-engine tags 8.6.0, with prefer-stable keeping 8.4/8.5 on their tags), and the PHPUnit floor goes to ^12.3.6, the first release that no longer passes the report_memleaks directive PHP 8.6 deprecates to .phpt children. Verified on PHP 8.6.0: unit and lifecycle suite with and without opcache, both 5k-cycle soaks, and the php-cgi multi-request gate. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01FxhC1D34vSRsQVcgd3HwS6 --- .github/workflows/ci.yml | 10 +++++----- AGENTS.md | 8 +++++--- README.md | 14 ++++++++------ composer.json | 5 +++-- 4 files changed, 21 insertions(+), 16 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 463fd15..aa26846 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,7 +12,7 @@ jobs: strategy: fail-fast: false matrix: - php: ['8.4', '8.5'] + php: ['8.4', '8.5', '8.6'] steps: - uses: actions/checkout@v7 @@ -38,7 +38,7 @@ jobs: strategy: fail-fast: false matrix: - php: ['8.4', '8.5'] + php: ['8.4', '8.5', '8.6'] steps: - uses: actions/checkout@v7 @@ -65,7 +65,7 @@ jobs: strategy: fail-fast: false matrix: - php: ['8.4', '8.5'] + php: ['8.4', '8.5', '8.6'] steps: - uses: actions/checkout@v7 @@ -88,7 +88,7 @@ jobs: strategy: fail-fast: false matrix: - php: ['8.4', '8.5'] + php: ['8.4', '8.5', '8.6'] steps: - uses: actions/checkout@v7 @@ -111,7 +111,7 @@ jobs: strategy: fail-fast: false matrix: - php: ['8.4', '8.5'] + php: ['8.4', '8.5', '8.6'] steps: - uses: actions/checkout@v7 diff --git a/AGENTS.md b/AGENTS.md index 629d5cd..d114496 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -190,13 +190,15 @@ makes one of them "need updating", the change is wrong until proven otherwise. answer by **exit code**, never by printing; the parent is the only process that asserts; values that must travel do so as arena words or fixed-size socket records. One arena, one store and one notification plane per process — the plane must exist before any fork. -- **Both minors, every time.** PHP 8.4 and 8.5 are supported in parallel, each with its own - z-engine line (`~8.4.2 || ~8.5.0`, resolved by Composer against the running PHP). - Run the suite on both before proposing a change: +- **Every minor, every time.** PHP 8.4, 8.5 and 8.6 are supported in parallel, each with its own + z-engine line (`~8.4.2 || ~8.5.0 || ~8.6.0@dev`, resolved by Composer against the running PHP; + 8.6 rides z-engine's `8.6.x-dev` until it is tagged). Run the suite on all three before + proposing a change: ```bash php8.4 -d ffi.enable=1 -d opcache.jit=off vendor/bin/phpunit # assert exit code 0 php8.5 -d ffi.enable=1 -d opcache.jit=off vendor/bin/phpunit # assert exit code 0 + php8.6 -d ffi.enable=1 -d opcache.jit=off vendor/bin/phpunit # assert exit code 0 ``` Check the **exit code**, not the summary line: a teardown segfault prints `OK (…)` and then diff --git a/README.md b/README.md index 742d02c..e139bb5 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ [![CI](https://github.com/lisachenko/php-shared-data-extension/actions/workflows/ci.yml/badge.svg)](https://github.com/lisachenko/php-shared-data-extension/actions/workflows/ci.yml) [![Latest Version](https://img.shields.io/packagist/v/lisachenko/php-shared-data-extension?include_prereleases)](https://packagist.org/packages/lisachenko/php-shared-data-extension) -[![PHP 8.4 | 8.5](https://img.shields.io/badge/php-8.4%20%7C%208.5-777BB3.svg?logo=php&logoColor=white)](composer.json) +[![PHP 8.4 | 8.5 | 8.6](https://img.shields.io/badge/php-8.4%20%7C%208.5%20%7C%208.6-777BB3.svg?logo=php&logoColor=white)](composer.json) [![License](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE) **PHP objects that survive the request boundary. In pure PHP.** @@ -534,13 +534,15 @@ php -d ffi.enable=1 demos/demo-objects.php php -d ffi.enable=1 demo.php # original shared C data demo ``` -CI runs all of the above on every push and pull request, on PHP 8.4 and 8.5. +CI runs all of the above on every push and pull request, on PHP 8.4, 8.5 and 8.6. `spikes/` holds the runnable evidence behind the engine claims this package rests on; [AGENTS.md](AGENTS.md) states the rules a change has to keep. ## Requirements -- PHP 8.4 or 8.5 (NTS) with `ext-ffi` -- `lisachenko/z-engine` — required as `~8.4.2 || ~8.5.0`; z-engine tracks - one PHP minor per release line, and Composer resolves the stable line matching - the running PHP (`8.4.x` on PHP 8.4, `8.5.x` on PHP 8.5) +- PHP 8.4, 8.5 or 8.6 (NTS) with `ext-ffi` +- `lisachenko/z-engine` — required as `~8.4.2 || ~8.5.0 || ~8.6.0@dev`; z-engine tracks + one PHP minor per release line, and Composer resolves the line matching + the running PHP (`8.4.x` on PHP 8.4, `8.5.x` on PHP 8.5, `8.6.x-dev` on PHP 8.6 until + z-engine tags 8.6.0 — a project on PHP 8.6 requires `lisachenko/z-engine:8.6.x-dev` at its + root until then, since Composer only honours root stability flags) diff --git a/composer.json b/composer.json index 01e6a0a..319e136 100644 --- a/composer.json +++ b/composer.json @@ -3,13 +3,14 @@ "description": "Shared data extension for PHP: persistent memory and request-surviving objects", "type": "library", "require": { - "lisachenko/z-engine": "~8.4.2 || ~8.5.0", + "lisachenko/z-engine": "~8.4.2 || ~8.5.0 || ~8.6.0@dev", "php": "^8.4", "ext-ffi": "*" }, "require-dev": { - "phpunit/phpunit": "^12.2" + "phpunit/phpunit": "^12.3.6" }, + "prefer-stable": true, "license": "MIT", "authors": [ { From a4f85efc18f524bf15a3dd35210bf80c236e5bc6 Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 21 Nov 2026 11:57:34 +0000 Subject: [PATCH 2/2] chore(deps): require the stable z-engine 8.6.0 release z-engine tagged 8.6.0, so the PHP 8.6 line no longer needs its 8.6.x-dev branch: the constraint becomes ~8.4.2 || ~8.5.0 || ~8.6.0, every minor resolves a stable tag, and the docs drop the root-level workaround a consumer on PHP 8.6 needed until now. The prefer-stable flag existed only to keep 8.4/8.5 on their tags while the dev constraint was present, and goes with it. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01FxhC1D34vSRsQVcgd3HwS6 --- AGENTS.md | 5 ++--- README.md | 8 +++----- composer.json | 3 +-- 3 files changed, 6 insertions(+), 10 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index d114496..6f2c15d 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -191,9 +191,8 @@ makes one of them "need updating", the change is wrong until proven otherwise. values that must travel do so as arena words or fixed-size socket records. One arena, one store and one notification plane per process — the plane must exist before any fork. - **Every minor, every time.** PHP 8.4, 8.5 and 8.6 are supported in parallel, each with its own - z-engine line (`~8.4.2 || ~8.5.0 || ~8.6.0@dev`, resolved by Composer against the running PHP; - 8.6 rides z-engine's `8.6.x-dev` until it is tagged). Run the suite on all three before - proposing a change: + z-engine line (`~8.4.2 || ~8.5.0 || ~8.6.0`, resolved by Composer against the running PHP). + Run the suite on all three before proposing a change: ```bash php8.4 -d ffi.enable=1 -d opcache.jit=off vendor/bin/phpunit # assert exit code 0 diff --git a/README.md b/README.md index e139bb5..75591be 100644 --- a/README.md +++ b/README.md @@ -541,8 +541,6 @@ rests on; [AGENTS.md](AGENTS.md) states the rules a change has to keep. ## Requirements - PHP 8.4, 8.5 or 8.6 (NTS) with `ext-ffi` -- `lisachenko/z-engine` — required as `~8.4.2 || ~8.5.0 || ~8.6.0@dev`; z-engine tracks - one PHP minor per release line, and Composer resolves the line matching - the running PHP (`8.4.x` on PHP 8.4, `8.5.x` on PHP 8.5, `8.6.x-dev` on PHP 8.6 until - z-engine tags 8.6.0 — a project on PHP 8.6 requires `lisachenko/z-engine:8.6.x-dev` at its - root until then, since Composer only honours root stability flags) +- `lisachenko/z-engine` — required as `~8.4.2 || ~8.5.0 || ~8.6.0`; z-engine tracks + one PHP minor per release line, and Composer resolves the stable line matching + the running PHP (`8.4.x` on PHP 8.4, `8.5.x` on PHP 8.5, `8.6.x` on PHP 8.6) diff --git a/composer.json b/composer.json index 319e136..b2105c5 100644 --- a/composer.json +++ b/composer.json @@ -3,14 +3,13 @@ "description": "Shared data extension for PHP: persistent memory and request-surviving objects", "type": "library", "require": { - "lisachenko/z-engine": "~8.4.2 || ~8.5.0 || ~8.6.0@dev", + "lisachenko/z-engine": "~8.4.2 || ~8.5.0 || ~8.6.0", "php": "^8.4", "ext-ffi": "*" }, "require-dev": { "phpunit/phpunit": "^12.3.6" }, - "prefer-stable": true, "license": "MIT", "authors": [ {