From 24eccd363d7537b7d7a253eddf71a6cb1b269123 Mon Sep 17 00:00:00 2001 From: William Jacoby Date: Tue, 10 Nov 2026 10:58:54 -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 | 4 ++-- language/en/adduser_install.php | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index c162e50..1d41f0a 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ Lets administrators create user accounts from the ACP. ## Requirements - phpBB 3.3.19 or later; phpBB 4.0 works too (tested with its development version) -- PHP 8.3.36 or later +- PHP 8.1 or later ## Installation diff --git a/composer.json b/composer.json index 310527a..4b9425b 100644 --- a/composer.json +++ b/composer.json @@ -31,7 +31,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 7602987..896d5e2 100644 --- a/ext.php +++ b/ext.php @@ -49,12 +49,12 @@ public function check_phpbb_version() } /** - * Requires PHP 8.3.36 due to security fixes. + * Requires PHP 8.1.0 or later. * * @return bool */ public function check_php_version() { - return PHP_VERSION_ID >= 80336; + return PHP_VERSION_ID >= 80100; } } diff --git a/language/en/adduser_install.php b/language/en/adduser_install.php index 70a1a64..6c85225 100644 --- a/language/en/adduser_install.php +++ b/language/en/adduser_install.php @@ -38,5 +38,5 @@ // $lang = array_merge($lang, [ - 'ADDUSER_NOT_ENABLEABLE' => 'Add User could not be enabled. The minimum requirements of phpBB 3.3.19 and/or PHP 8.3.36 were not satisfied.', + 'ADDUSER_NOT_ENABLEABLE' => 'Add User could not be enabled. The minimum requirements of phpBB 3.3.19 and/or PHP 8.1 were not satisfied.', ]);