From 7f3924ac8140a245e6623b727d0e0656b2a2c811 Mon Sep 17 00:00:00 2001 From: William Jacoby Date: Tue, 10 Nov 2026 11:05:37 -0600 Subject: [PATCH] Lower the PHP minimum to 8.1 The extension now enables on PHP 8.1.0 and later instead of 8.3.36. phpBB requirements are unchanged. Co-Authored-By: Claude Opus 5.5 --- README.md | 2 +- composer.json | 2 +- ext.php | 2 +- language/en/install.php | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index af65640..4333b02 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ Adds the registering account's email address, stored registration IP and registration date to phpBB's administrator activation emails. Valid IPv4 and IPv6 addresses include WHOIS/RDAP and Stop Forum Spam lookup links. -Requires phpBB 3.3.19 or phpBB 4.0 and PHP 8.3.36 or later. phpBB 4.0 is +Requires phpBB 3.3.19 or phpBB 4.0 and PHP 8.1 or later. phpBB 4.0 is still a development branch; see [testing](docs/testing.md) for tested revisions. ## Installation diff --git a/composer.json b/composer.json index 6a48042..2cf6c9f 100644 --- a/composer.json +++ b/composer.json @@ -13,7 +13,7 @@ } ], "require": { - "php": ">=8.3.36", + "php": ">=8.1.0", "composer/installers": "^1.0 || ^2.0" }, "extra": { diff --git a/ext.php b/ext.php index a4e6c74..cbce1f8 100644 --- a/ext.php +++ b/ext.php @@ -15,7 +15,7 @@ class ext extends \phpbb\extension\base */ public function is_enableable() { - if (PHP_VERSION_ID >= 80336 && + if (PHP_VERSION_ID >= 80100 && phpbb_version_compare(PHPBB_VERSION, '3.3.19', '>=') && phpbb_version_compare(PHPBB_VERSION, '4.1.0-dev', '<')) { diff --git a/language/en/install.php b/language/en/install.php index 53addaf..d016042 100644 --- a/language/en/install.php +++ b/language/en/install.php @@ -16,5 +16,5 @@ } $lang = array_merge($lang, array( - 'ADMINACTIVATIONDETAILS_NOT_ENABLEABLE' => 'Admin Activation Details requires phpBB 3.3.19 or phpBB 4.0, and PHP 8.3.36 or later.', + 'ADMINACTIVATIONDETAILS_NOT_ENABLEABLE' => 'Admin Activation Details requires phpBB 3.3.19 or phpBB 4.0, and PHP 8.1 or later.', ));