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 | |
parent | 960bcb6b534b758fad06177a2b20e154025d386f (diff) | |
download | volse-hubzilla-ed0d2fed66355a289d50a96023c67da4682a44be.tar.gz volse-hubzilla-ed0d2fed66355a289d50a96023c67da4682a44be.tar.bz2 volse-hubzilla-ed0d2fed66355a289d50a96023c67da4682a44be.zip |
require bcmath or gmp extension
-rw-r--r-- | Zotlabs/Module/Setup.php | 7 | ||||
-rw-r--r-- | composer.json | 1 |
2 files changed, 8 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); } /** diff --git a/composer.json b/composer.json index 8d9301e6a..2c303663b 100644 --- a/composer.json +++ b/composer.json @@ -32,6 +32,7 @@ "ext-json": "*", "ext-posix": "*", "ext-sodium": "*", + "ext-bcmath": "*", "sabre/dav": "^4.0", "michelf/php-markdown": "^2.0", "bshaffer/oauth2-server-php": "^1.9", |