Check for GMP module

This commit is contained in:
Michael 2022-07-17 06:34:37 +00:00
parent 974564f75e
commit f2a4aecc05
2 changed files with 8 additions and 1 deletions

View file

@ -263,7 +263,7 @@ class Avatar
{
$localFile = self::getCacheFile($avatar);
if (!empty($localFile)) {
unlink($localFile);
@unlink($localFile);
Logger::debug('Unlink avatar', ['avatar' => $avatar]);
}
}

View file

@ -486,6 +486,13 @@ class Installer
);
$returnVal = $returnVal ? $status : false;
$status = $this->checkFunction('gmp_strval',
DI::l10n()->t('GNU Multiple Precision PHP module'),
DI::l10n()->t('Error: GNU Multiple Precision PHP module required but not installed.'),
true
);
$returnVal = $returnVal ? $status : false;
return $returnVal;
}