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); $localFile = self::getCacheFile($avatar);
if (!empty($localFile)) { if (!empty($localFile)) {
unlink($localFile); @unlink($localFile);
Logger::debug('Unlink avatar', ['avatar' => $avatar]); Logger::debug('Unlink avatar', ['avatar' => $avatar]);
} }
} }

View File

@ -486,6 +486,13 @@ class Installer
); );
$returnVal = $returnVal ? $status : false; $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; return $returnVal;
} }