Skip to content

Conversation

@nanasess
Copy link
Owner

@nanasess nanasess commented Nov 21, 2025

Summary

  • Add PHP 8.5 support
  • Support PHP 8.5 via APT installation method
  • Set fallback version to 8.5.0 for phpenv installation
  • Add PHP 8.5 to CI/CD matrix testing

Changes

  • src/installer.ts: Extend hasAptVersion() range to <= 8.5
  • src/installer.ts: Add PHP 8.5 fallback value (8.5.0) in convertInstallVersion()
  • README.md: Add PHP 8.5 to supported version list and update patch version note
  • .github/workflows/workflow.yml: Add PHP 8.5 to test matrix
  • tests/run.test.ts: Add test case for hasAptVersion('8.5')
  • CLAUDE.md: Update entire documentation to reflect PHP 8.5 support

Test plan

  • Build succeeds (npm run build)
  • Tests pass (npm run test)
  • CI/CD runs PHP 8.5 tests
  • PHP 8.5 can be installed via APT on Ubuntu environments
  • PHP 8.5 can be installed via Chocolatey on Windows environments

Related issues

This PR adds support for the latest PHP 8.5 release.

🤖 Generated with Claude Code

nanasess and others added 4 commits November 21, 2025 15:49
- Update hasAptVersion() to support PHP 8.5 (5.6 || <=7.4 || <= 8.5)
- Add PHP 8.5 fallback version (8.5.0) in convertInstallVersion()
- Add PHP 8.5 to README.md version list
- Update workflow.yml matrix to test PHP 8.5
- Add test case for hasAptVersion('8.5')
- Update CLAUDE.md to reflect PHP 8.5 support

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
Update the bundled distribution file to include PHP 8.5 support in
hasAptVersion() function. The previous commit updated src/installer.ts
and lib/installer.js but did not rebuild the dist/index.js bundle.

This fixes the issue where PHP 8.5 was being installed via phpenv
instead of APT on Ubuntu.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
PHP 8.5 has opcache bundled in the core, so the separate
php8.5-opcache package doesn't exist in the repository.
This caused "Unable to locate package php8.5-opcache" error.

Changes:
- Modified apt-install-php-ubuntu.sh to only install php${version}-opcache
  for versions < 8.5
- Added conditional check: if version < 8.5, install opcache separately
- For PHP 8.5+, opcache is already included in php-common/php-cli

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
Added documentation about PHP 8.5+ bundling opcache in core and
updated version support checklist to include checking for bundled
extensions when adding new PHP versions.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@nanasess nanasess merged commit dc0e657 into master Nov 21, 2025
50 checks passed
@nanasess nanasess deleted the add-php8.5 branch November 21, 2025 07:24
@nanasess nanasess mentioned this pull request Nov 21, 2025
6 tasks
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