From 50965e1419727de4dcdff5ccba0171b15509e3d2 Mon Sep 17 00:00:00 2001 From: xiaomlove Date: Sat, 23 Jul 2022 15:08:16 +0800 Subject: [PATCH] require php gmp ext --- README-EN.md | 3 ++- README.md | 3 ++- nexus/Install/Install.php | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/README-EN.md b/README-EN.md index faf6e649..5314aad9 100644 --- a/README-EN.md +++ b/README-EN.md @@ -16,6 +16,7 @@ Complete PT website building solution. Based on NexusPHP + Laravel + Filament. - Retroactive attendance card - Medal - Custom tags +- SeedBox rule - Forum - Complain - Multi-language @@ -26,7 +27,7 @@ Complete PT website building solution. Based on NexusPHP + Laravel + Filament. - .... ## System Requirements -- PHP: 8.0, must have extensions: bcmath, ctype, curl, fileinfo, json, mbstring, openssl, pdo_mysql, tokenizer, xml, mysqli, gd, redis, pcntl, sockets, posix +- PHP: 8.0, must have extensions: bcmath, ctype, curl, fileinfo, json, mbstring, openssl, pdo_mysql, tokenizer, xml, mysqli, gd, redis, pcntl, sockets, posix, gmp - Mysql: 5.7 latest version or above - Redis:2.0.0 or above diff --git a/README.md b/README.md index 03ec857e..eb7b686d 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,7 @@ - 补签卡 - 勋章 - 自定义标签 +- 盒子规则 - 论坛 - 申诉 - 多语言 @@ -25,7 +26,7 @@ - .... ## 系统要求 -- PHP: 8.0,必须扩展:bcmath, ctype, curl, fileinfo, json, mbstring, openssl, pdo_mysql, tokenizer, xml, mysqli, gd, redis, pcntl, sockets, posix +- PHP: 8.0,必须扩展:bcmath, ctype, curl, fileinfo, json, mbstring, openssl, pdo_mysql, tokenizer, xml, mysqli, gd, redis, pcntl, sockets, posix, gmp - Mysql: 5.7 最新版或以上版本 - Redis:2.0.0 或以上版本 diff --git a/nexus/Install/Install.php b/nexus/Install/Install.php index 4ae9b193..7f7c8c08 100644 --- a/nexus/Install/Install.php +++ b/nexus/Install/Install.php @@ -30,7 +30,7 @@ class Install 'REDIS_HOST', 'REDIS_PORT', 'REDIS_DB', 'REDIS_PASSWORD', ]; - protected array $requiredExtensions = ['ctype', 'curl', 'fileinfo', 'json', 'mbstring', 'openssl', 'pdo_mysql', 'tokenizer', 'xml', 'mysqli', 'bcmath', 'redis', 'gd', ]; + protected array $requiredExtensions = ['ctype', 'curl', 'fileinfo', 'json', 'mbstring', 'openssl', 'pdo_mysql', 'tokenizer', 'xml', 'mysqli', 'bcmath', 'redis', 'gd', 'gmp']; protected array $optionalExtensions = [ ['name' => 'pcntl', 'desc' => "If use Octane and 'Current' showing 0, make sure it's on php -m"], ['name' => 'posix', 'desc' => "If use Octane and 'Current' showing 0, make sure it's on php -m"],