From 3926bb83c1424e7302592e8d9fbf2d2ee806eecd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=97=E5=AD=90?= Date: Wed, 27 Nov 2024 00:02:00 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20swoole=E5=92=8Cioncube=E4=B8=8D=E6=94=AF?= =?UTF-8?q?=E6=8C=81php84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/apps/php/service.go | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/internal/apps/php/service.go b/internal/apps/php/service.go index a69986b2..931dea94 100644 --- a/internal/apps/php/service.go +++ b/internal/apps/php/service.go @@ -350,24 +350,27 @@ func (s *Service) getExtensions() []Extension { Slug: "igbinary", Description: "Igbinary 是一个用于序列化和反序列化数据的库", }, - { + } + + // ionCube Swoole 不支持 PHP 8.4 + if cast.ToUint(s.version) < 84 { + extensions = append(extensions, Extension{ Name: "ionCube", Slug: "ionCube Loader", Description: "ionCube 是一个专业级的 PHP 加密解密工具(需在 OPcache 之后安装)", - }, - { + }) + extensions = append(extensions, Extension{ Name: "Swoole", Slug: "swoole", Description: "Swoole 是一个用于构建高性能的异步并发服务器的 PHP 扩展", - }, + }) } - // Swow 不支持 PHP 8.0 以下版本 if cast.ToUint(s.version) >= 80 { extensions = append(extensions, Extension{ Name: "Swow", Slug: "Swow", - Description: "Swow 是一个用于构建高性能的异步并发服务器的 PHP 扩展。", + Description: "Swow 是一个用于构建高性能的异步并发服务器的 PHP 扩展", }) }