Skip to content

chore: require PHP 8.2 or later - #59

Merged
AaronAtDuo merged 1 commit into
masterfrom
chore/php-min-8.2
Oct 21, 2026
Merged

AaronAtDuo merged 1 commit into
masterfrom
chore/php-min-8.2

Conversation

@AaronAtDuo

Copy link
Copy Markdown
Contributor

Summary

Raise the composer PHP constraint from >=8.0 to >=8.2.

PHP 8.0 and 8.1 are end-of-life and will not receive the fixes for CVE-2026-109618 / CVE-2026-109619 ("PHP2Shell", unauthenticated RCE in the PHP engine, disclosed 2026-10-21, fixed in 8.2.35 / 8.3.36 / 8.4.27 / 8.5.12). CI and the README already cover only 8.2–8.5; this aligns composer with that.

This library is not vulnerable itself, because the bugs are in the PHP runtime. This change stops us from declaring support for runtimes that can't be patched. Users still have to patch PHP themselves.

Notes for reviewers

  • This is a support-floor change, so it should be mentioned in the next release notes.
  • composer.lock: only the platform entry changed. The lock's content-hash was already stale on master (it doesn't match master's own composer.json, because of the php-coveralls: dev-master dev dependency), and composer update --lock fails to resolve for the same reason. I left the hash alone rather than paper over that. It's a separate fix.
  • I deliberately did not add a patch-level floor (e.g. >=8.2.35). Distros backport security fixes without bumping the version, so it would block correctly patched distro PHP.

Testing

  • Unit suite on PHP 8.2 (Docker): 79 tests OK.

This PR was generated with AI assistance (Claude).

🤖 Generated with Claude Code

PHP 8.0 and 8.1 are end-of-life and will not receive the fixes for
CVE-2026-109618 / CVE-2026-109619 (PHP2Shell). CI and the README already
cover only 8.2-8.5; align the composer constraint with that.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@AaronAtDuo
AaronAtDuo merged commit dc44dee into master Oct 21, 2026
5 checks passed
@AaronAtDuo
AaronAtDuo deleted the chore/php-min-8.2 branch October 21, 2026 18:42
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.

2 participants