]> git.mxchange.org Git - friendica.git/blobdiff - src/Core/Installer.php
Funkwhale context file moved
[friendica.git] / src / Core / Installer.php
index 8ed6c9afa42965416ce242c6e748ea0b1c0dcf73..9a9bdfb5f79f0cc5f72e7ecf547ba012bec45729 100644 (file)
@@ -192,7 +192,7 @@ class Installer
         * @return bool true if the installation was successful, otherwise false
         * @throws Exception
         */
-       public function installDatabase()
+       public function installDatabase(): bool
        {
                $result = DBStructure::install();
 
@@ -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;
        }