From 980da4ea0fc5a3e0524e3650b36b3e970d810a9c Mon Sep 17 00:00:00 2001 From: crazywhalecc Date: Thu, 27 Jul 2023 18:46:37 +0800 Subject: [PATCH] fix mbregex without mbstring failed check (fix #96) --- config/ext.json | 5 +++-- src/SPC/builder/extension/mbregex.php | 5 +++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/config/ext.json b/config/ext.json index 1332a2a0..b25b9c72 100644 --- a/config/ext.json +++ b/config/ext.json @@ -165,8 +165,9 @@ }, "mbregex": { "type": "builtin", - "lib-depends": [ - "onig" + "arg-type": "custom", + "ext-depends": [ + "mbstring" ] }, "mbstring": { diff --git a/src/SPC/builder/extension/mbregex.php b/src/SPC/builder/extension/mbregex.php index 48d15128..6a4d1457 100644 --- a/src/SPC/builder/extension/mbregex.php +++ b/src/SPC/builder/extension/mbregex.php @@ -14,4 +14,9 @@ class mbregex extends Extension { return 'mbstring'; } + + public function getConfigureArg(): string + { + return ''; + } }