File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
wcfsetup/install/files/lib/acp/page Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -67,6 +67,7 @@ class SystemCheckPage extends AbstractPage
67
67
'dom ' ,
68
68
'exif ' ,
69
69
'gd ' ,
70
+ ['gmp ' , 'bcmath ' ],
70
71
'intl ' ,
71
72
'libxml ' ,
72
73
'mbstring ' ,
@@ -314,8 +315,11 @@ protected function validateMysql()
314
315
protected function validatePhpExtensions ()
315
316
{
316
317
foreach ($ this ->phpExtensions as $ phpExtension ) {
317
- $ result = \extension_loaded ($ phpExtension );
318
- if (!$ result ) {
318
+ if (\is_array ($ phpExtension )) {
319
+ if (\array_filter ($ phpExtension , '\extension_loaded ' ) === []) {
320
+ $ this ->results ['php ' ]['extension ' ][] = $ phpExtension [0 ];
321
+ }
322
+ } elseif (!\extension_loaded ($ phpExtension )) {
319
323
$ this ->results ['php ' ]['extension ' ][] = $ phpExtension ;
320
324
}
321
325
}
You can’t perform that action at this time.
0 commit comments