From 10c1ccd6e45ead4467a5f20d850f77bc6eb2db9d Mon Sep 17 00:00:00 2001 From: Daniel Tihanyi <65710336+tetragir@users.noreply.github.com> Date: Wed, 4 Aug 2021 17:25:24 +0200 Subject: [PATCH] Extend REQUIRED_PHP_EXTENSIONS check about core extensions (#1540) * Extend Grocy REQUIRED_PHP_EXTENSIONS After installing Grocy on FreeBSD, even with all extensions installed that are listed in REQUIRED_PHP_EXTENSIONS, Grocy still couldn't start. The added 3 PHP Extensions are also needed to run Grocy. * Added note about core extensions Co-authored-by: Bernd Bestel --- helpers/PrerequisiteChecker.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/helpers/PrerequisiteChecker.php b/helpers/PrerequisiteChecker.php index 37f6b370..752f6238 100644 --- a/helpers/PrerequisiteChecker.php +++ b/helpers/PrerequisiteChecker.php @@ -4,7 +4,11 @@ class ERequirementNotMet extends Exception { } -const REQUIRED_PHP_EXTENSIONS = ['fileinfo', 'pdo_sqlite', 'gd', 'ctype', 'json', 'intl', 'zlib']; +const REQUIRED_PHP_EXTENSIONS = ['fileinfo', 'pdo_sqlite', 'gd', 'ctype', 'json', 'intl', 'zlib', + // These are core extensions, so normally can't be missing, but seems to be the case, however, on FreeBSD + 'filter', 'iconv', 'tokenizer' +]; + const REQUIRED_SQLITE_VERSION = '3.9.0'; class PrerequisiteChecker