Skip to content

Support phpBB 3.2.x and 3.3.x (PHP 5.4 to 8.x), fix CI - #75

Open
gn36 wants to merge 5 commits into
masterfrom
claude/hopeful-curie-f08cpb
Open

gn36 wants to merge 5 commits into
masterfrom
claude/hopeful-curie-f08cpb

Conversation

@gn36

@gn36 gn36 commented Oct 18, 2026 •

Copy link
Copy Markdown
Owner

Summary

Makes the extension run on phpBB 3.2.x and 3.3.x (including PHP 8), analogous to gn36/phpbb-ext-versionchecknotifier#18, and sets up automated tests.

  • composer.json: phpBB >=3.2.2,<3.4@dev, PHP >=5.4; remove outdated dev dependencies; allow the Composer 2 installer plugins needed for the vendor dependencies (composer install failed without this); composer.lock is no longer tracked (resolved per PHP version)
  • ext.php: use the language service; fix the soft_require key (it is soft-require, so the phpBB version check never ran); fix an accidental character range in the version regex
  • notification/*: titles are built via the language service
  • functions/hookup.php: fix saving dates on MSSQL (explicit value for the identity column date_id needs SET IDENTITY_INSERT); found by the CI database matrix
  • Code sniffer findings fixed (trailing whitespace, unused use conflicts)
  • Tests work on PHPUnit 4 (phpBB 3.2) and 9 (phpBB 3.3): tests/compat.php trait instead of assertContains with strings, no setUp(): void, no assertAttributeEmpty; new phpunit.xml.dist
  • CI (GitHub Actions):
    • phpBB 3.3: phpbb-extensions/test-framework@3.3.x (master of the framework targets phpBB 4), incl. composer install for the functional tests; sniffer, EPV, ICC, executable check, all databases, PHP 7.2 to 8.4
    • phpBB 3.2: own workflow tests-3.2.yml (PHP 5.6, 7.1, 7.2; phpBB 3.2.x itself does not support PHP 7.3+), unit and functional tests
    • Travis config, build.xml and travis/ removed
  • develop/ scripts: check.sh (same checks as the CI), run-tests.sh, run-functional-tests.sh, cloud-setup.sh (the directory is named develop because the executable files check skips it)

Test plan

  • GitHub Actions on the current head: all 38 checks green (phpBB 3.2 on PHP 5.6/7.1/7.2; phpBB 3.3 basic checks, MySQL/MariaDB/PostgreSQL/SQLite/MSSQL, PHP 7.2 to 8.4, Windows)
  • Locally against phpBB 3.3.x, PHP 8.3: 55 unit tests and 18 functional tests (headless, enabling the extension in a real board) OK

Notes: composer.phar is still tracked and untouched; the package version in composer.json was kept (required by phpBB) and not bumped. PHP 5.4/5.5 is not covered by the CI (not available in the runner setup), phpBB 3.1 is not supported.

🤖 Generated with Claude Code

https://claude.ai/code/session_014TpJhHt7ke8q3BnSZ8wGZf

- Require phpBB >=3.3.0 and PHP >=7.2, drop outdated dev dependencies
- ext.php: use language service, fix soft-require key and regex range
- Notifications: use language service for titles
- Tests: run on PHPUnit 9 (replace removed assertAttributeEmpty, new phpunit.xml)
- Replace Travis setup by GitHub Actions workflow, add dev scripts for local tests

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014TpJhHt7ke8q3BnSZ8wGZf
- composer.json: allow the installer plugins required for the vendor dependencies (Composer 2)
- Add fresh composer.lock
- Functional tests: use assertStringContainsString instead of removed string support in assertContains
- Add dev/run-functional-tests.sh for running the functional tests headless

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014TpJhHt7ke8q3BnSZ8wGZf
- composer.json: allow phpBB >=3.2.2 and PHP >=5.4, drop composer.lock (resolved per PHP version)
- Tests: assertions that work on PHPUnit 4 (phpBB 3.2) and 9 (phpBB 3.3)
- CI: use test-framework@3.3.x (master targets phpBB 4) incl. composer install, separate workflow for phpBB 3.2.x
- Rename dev/ to develop/ (skipped by the executable files check), add develop/check.sh mirroring the CI checks
- Fix code sniffer findings

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014TpJhHt7ke8q3BnSZ8wGZf
phpBB 3.2.x does not support PHP 7.3+, and a ': void' return type breaks PHP < 7.1.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014TpJhHt7ke8q3BnSZ8wGZf
@gn36 gn36 changed the title Update extension for phpBB 3.3.x / PHP 7.2+ (incl. PHP 8) Support phpBB 3.2.x and 3.3.x (PHP 5.4 to 8.x), fix CI Oct 18, 2026
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