Merge remote-tracking branch 'origin/support/2.5' into release/2.6

# Conflicts:
#	composer.json
#	setup/setuputils.class.inc.php
This commit is contained in:
Pierre Goiffon
2018-12-17 17:04:39 +01:00
25 changed files with 18 additions and 4 deletions

View File

@@ -10,7 +10,8 @@
"ext-zip": "*",
"ext-mysqli": "*",
"ext-dom": "*",
"ext-iconv": "*"
"ext-iconv": "*",
"ext-gd": "*"
},
"config": {
"platform": {

View File

@@ -92,12 +92,25 @@ class SetupUtils
$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, sodium or openssl' => array( 'mcrypt' => 'Strong encryption will not be used.',
$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(
'sodium' => 'Strong encryption will not be used.',
'openssl' => '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).');
);
asort($aMandatoryExtensions); // Sort the list to look clean !
ksort($aOptionalExtensions); // Sort the list to look clean !
$aExtensionsOk = array();