From ba57103aaec0550bc7be23c9a1102f0b09c27e4e Mon Sep 17 00:00:00 2001 From: William Jacoby Date: Tue, 10 Nov 2026 11:04:57 -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 --- composer.json | 2 +- ext.php | 4 ++-- language/en/install_newspage.php | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/composer.json b/composer.json index 1db6384..8dbc330 100644 --- a/composer.json +++ b/composer.json @@ -26,7 +26,7 @@ } ], "require": { - "php": ">=8.3.36", + "php": ">=8.1.0", "ext-dom": "*", "composer/installers": "^1.0 || ^2.0" }, diff --git a/ext.php b/ext.php index 539e51a..192c43e 100644 --- a/ext.php +++ b/ext.php @@ -73,13 +73,13 @@ 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/install_newspage.php b/language/en/install_newspage.php index a5dcf5c..b084f82 100644 --- a/language/en/install_newspage.php +++ b/language/en/install_newspage.php @@ -22,6 +22,6 @@ } $lang = array_merge($lang, [ - 'NEWSPAGE_NOT_ENABLEABLE' => 'NV Newspage could not be enabled. It needs phpBB 3.3.19 or later, PHP 8.3.36 or later, and the PHP DOM extension.', + 'NEWSPAGE_NOT_ENABLEABLE' => 'NV Newspage could not be enabled. It needs phpBB 3.3.19 or later, PHP 8.1 or later, and the PHP DOM extension.', 'NEWSPAGE_DISABLE_OLD' => 'Disable the old ā€œ%sā€ extension first. Keep its data; do not delete it.', ]);