8000 feat: require php 8.2 or newer and pin patched php in ci by moeaffinidi · Pull Request #591 · affinidi/affinidi-tdk-php · GitHub
[go: up one dir, main page]

Skip to content

feat: require php 8.2 or newer and pin patched php in ci - #591

Merged
moeaffinidi merged 3 commits into
mainfrom
fix/pin-patched-php-version 10000
Oct 23, 2026
Merged

moeaffinidi merged 3 commits into
mainfrom
fix/pin-patched-php-version

Conversation

@moeaffinidi
@moeaffinidi moeaffinidi commented Oct 23, 2026 •
Copy link
Copy Markdown
Contributor

What

Follow-up to the PHP security release of 21 Oct 2026 (CVE-2026-109618, CVE-2026-109619), fixed in PHP 8.2.35, 8.3.36, 8.4.27 and 8.5.12: https://thephp.foundation/blog/2026/10/21/todays-php-security-release-and-how-were-strengthening-php-security/

The vulnerabilities are in the PHP engine, so this SDK cannot fix them itself. The changes below make sure CI runs a patched PHP and that the supported PHP range no longer includes end-of-life versions.

Changes

  • CI: pin PHP to 8.4.27 through a new .php-version file, read by setup-php in both checks.yaml and release.yaml, and print php -v. Previously the test step in checks.yaml ran on the runner's preinstalled PHP (8.5.4 on the current ubuntu-26.04 image), and release.yaml used 8.4.
  • Constraint: php in composer.json goes from ^7.4 || ^8.0 to ^8.2. composer.lock is updated to match (content-hash and platform entry).
  • Docs: root README now states PHP 8.2 or higher and recommends running a patched PHP release.

Impact for users

  • PHP 8.2 or newer: no change.
  • PHP 7.4, 8.0, 8.1: Composer keeps them on the last release that supports their PHP. Nothing already installed breaks.

Pin PHP to 8.4.27 via .php-version in the checks and release workflows
and print the version, so the runtime is patched for CVE-2026-109618 and
CVE-2026-109619 and can be verified from source control.
PHP 7.4, 8.0 and 8.1 are end-of-life and no longer receive security
fixes. Users on those versions keep the last compatible release.
@moeaffinidi
moeaffinidi marked this pull request as ready for review October 23, 2026 15:41
Comment thread .php-version Resolved
Run the workflows on the minimum supported PHP version (8.2) and let
setup-php update to the latest patch release, instead of an exact pin.
@moeaffinidi
moeaffinidi merged commit 2cad6c3 into main Oct 23, 2026
9 checks passed
@moeaffinidi
moeaffinidi deleted the fix/pin-patched-php-version branch October 23, 2026 17:10
@affinidi-semantic-release
Copy link
Copy Markdown

🎉 This PR is included in version 1.23.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@affinidi-appsecurity-bot
Copy link
Copy Markdown

🛡️ AI Agentic Security Code Review

3 AI-confirmed issues, 2 findings need a human to review/validate.

Mandatory to check: 🔒 Security Code Review Report — Security tab ↗

📊 Summary & findings
✅ Confirmed ⚠️ Must-Review-By-Human
3 2

Finding details (titles, evidence + remediation) are in the 🔒 Security tab ↗ — visible to maintainers / code owners only.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

0