N°1885 add php-gd as a mandatory extension

This commit is contained in:
Pierre Goiffon
2018-12-17 15:48:06 +01:00
parent 9828b905b2
commit faba67b292
2 changed files with 21 additions and 6 deletions

View File

@@ -8,7 +8,8 @@
"ext-soap": "*",
"ext-json": "*",
"ext-zip": "*",
"ext-mysqli": "*"
"ext-mysqli": "*",
"ext-gd": "*"
},
"config": {
"platform": {

View File

@@ -89,11 +89,25 @@ class SetupUtils
// Check the common directories
$aWritableDirsErrors = self::CheckWritableDirs(array('log', 'env-production', 'env-production-build', 'conf', 'data'));
$aResult = array_merge($aResult, $aWritableDirsErrors);
$aMandatoryExtensions = array('mysqli', 'iconv', 'simplexml', 'soap', 'hash', 'json', 'session', 'pcre', 'dom', 'zlib', 'zip');
$aOptionalExtensions = array('mcrypt' => 'Strong encryption will not be used.',
'ldap' => 'LDAP authentication will be disabled.',
'gd' => 'PDF export will be disabled. Also, image resizing will be disabled on profile pictures (May increase database size).');
$aMandatoryExtensions = array(
'mysqli',
'iconv',
'simplexml',
'soap',
'hash',
'json',
'session',
'pcre',
'dom',
'zlib',
'zip',
'gd', // used to test image type (always returns false if not installed), image resizing, PDF export
);
$aOptionalExtensions = array(
'mcrypt' => 'Strong encryption will not be used.',
'ldap' => 'LDAP authentication will be disabled.',
);
asort($aMandatoryExtensions); // Sort the list to look clean !
ksort($aOptionalExtensions); // Sort the list to look clean !
$aExtensionsOk = array();