From 5fb28cb51c1a24a9a8e8960b56a8798303e1f1eb Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Thu, 23 Oct 2025 14:46:04 +0200 Subject: [PATCH] fix setup checks --- Zotlabs/Module/Setup.php | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/Zotlabs/Module/Setup.php b/Zotlabs/Module/Setup.php index 4c5d08c3b..950c44029 100644 --- a/Zotlabs/Module/Setup.php +++ b/Zotlabs/Module/Setup.php @@ -504,11 +504,6 @@ class Setup extends \Zotlabs\Web\Controller { } $this->check_add($checks, t('Generate ed25519 encryption keys'), $res, true, $help); - $res = extension_loaded('gmp'); - if (!$res) { - $help = t('Error: "gmp" (bigmath library) extension is required.') . EOL; - } - $this->check_add($checks, t('Bigmath library gmp'), $res, $help); } /** @@ -533,6 +528,7 @@ class Setup extends \Zotlabs\Web\Controller { $this->check_add($ck_funcs, t('xml PHP module'), true, true); $this->check_add($ck_funcs, t('zip PHP module'), true, true); $this->check_add($ck_funcs, t('intl PHP module'), true, true); + $this->check_add($ck_funcs, t('gmp PHP module'), true, true); if(function_exists('apache_get_modules')){ if(! in_array('mod_rewrite', apache_get_modules())) { @@ -589,9 +585,15 @@ class Setup extends \Zotlabs\Web\Controller { $ck_funcs[6]['status'] = false; $ck_funcs[6]['help'] = t('Error: zip PHP module required but not installed.'); } - if(! extension_loaded('intl')) { - $ck_funcs[6]['status'] = false; - $ck_funcs[6]['help'] = t('Error: intl PHP module required but not installed.'); + + if (!extension_loaded('intl')) { + $ck_funcs[7]['status'] = false; + $ck_funcs[7]['help'] = t('Error: intl PHP module required but not installed.'); + } + + if (!extension_loaded('gmp')) { + $ck_funcs[8]['status'] = false; + $ck_funcs[8]['help'] = t('Error: gmp PHP module required but not installed.'); } $checks = array_merge($checks, $ck_funcs);