Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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

Expand All @@ -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

Expand All @@ -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

Expand All @@ -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

Expand Down
7 changes: 4 additions & 3 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.**
Expand Down Expand Up @@ -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)
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down