aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module
diff options
context:
space:
mode:
Diffstat (limited to 'Zotlabs/Module')
-rw-r--r--Zotlabs/Module/Setup.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/Zotlabs/Module/Setup.php b/Zotlabs/Module/Setup.php
index 72646c8ba..a48c6627b 100644
--- a/Zotlabs/Module/Setup.php
+++ b/Zotlabs/Module/Setup.php
@@ -497,6 +497,13 @@ class Setup extends \Zotlabs\Web\Controller {
$help = t('Error: the sodium encryption library is not installed.') . EOL;
}
$this->check_add($checks, t('Generate ed25519 encryption keys'), $res, true, $help);
+
+ $res1 = extension_loaded('bcmath');
+ $res2 = extension_loaded('gmp');
+ if (! ($res1 || $res2)) {
+ $help = t('Error: one of "bcmath" or "gmp" (bigmath library) extensions are required.') . EOL;
+ }
+ $this->check_add($checks, t('Bigmath library (either bcmath or gmp)'), $res1||$res2, $help);
}
/**