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..6f2c15d 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -190,13 +190,14 @@ 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`, 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 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..75591be 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,13 @@ 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 +- 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`; 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) + 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 01e6a0a..b2105c5 100644 --- a/composer.json +++ b/composer.json @@ -3,12 +3,12 @@ "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", "php": "^8.4", "ext-ffi": "*" }, "require-dev": { - "phpunit/phpunit": "^12.2" + "phpunit/phpunit": "^12.3.6" }, "license": "MIT", "authors": [