diff options
author | Mario <mario@mariovavti.com> | 2024-01-06 16:23:26 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2024-01-06 16:23:26 +0000 |
commit | ed0d2fed66355a289d50a96023c67da4682a44be (patch) | |
tree | e8ae5a6c42c23c77167d33f49e86105a7544d127 /Zotlabs/Module/Setup.php | |
parent | 960bcb6b534b758fad06177a2b20e154025d386f (diff) | |
download | volse-hubzilla-ed0d2fed66355a289d50a96023c67da4682a44be.tar.gz volse-hubzilla-ed0d2fed66355a289d50a96023c67da4682a44be.tar.bz2 volse-hubzilla-ed0d2fed66355a289d50a96023c67da4682a44be.zip |
require bcmath or gmp extension
Diffstat (limited to 'Zotlabs/Module/Setup.php')
-rw-r--r-- | Zotlabs/Module/Setup.php | 7 |
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); } /** |