Skip to content

Commit 3c88a8e

Browse files
committed
Add the check for gmp or bcmath to the SystemCheck
1 parent ea42c70 commit 3c88a8e

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

wcfsetup/install/files/lib/acp/page/SystemCheckPage.class.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ class SystemCheckPage extends AbstractPage
6767
'dom',
6868
'exif',
6969
'gd',
70+
['gmp', 'bcmath'],
7071
'intl',
7172
'libxml',
7273
'mbstring',
@@ -314,8 +315,11 @@ protected function validateMysql()
314315
protected function validatePhpExtensions()
315316
{
316317
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)) {
319323
$this->results['php']['extension'][] = $phpExtension;
320324
}
321325
}

0 commit comments

Comments
 (0)