mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-24 02:58:43 +02:00
N°3123 - Update the list of required PHP extensions
This commit is contained in:
@@ -136,29 +136,8 @@ class SetupUtils
|
|||||||
$aWritableDirsErrors = self::CheckWritableDirs(array('log', 'env-production', 'env-production-build', 'conf', 'data'));
|
$aWritableDirsErrors = self::CheckWritableDirs(array('log', 'env-production', 'env-production-build', 'conf', 'data'));
|
||||||
$aResult = array_merge($aResult, $aWritableDirsErrors);
|
$aResult = array_merge($aResult, $aWritableDirsErrors);
|
||||||
|
|
||||||
$aMandatoryExtensions = array(
|
$aMandatoryExtensions = self::GetPHPMandatoryExtensions();
|
||||||
'mysqli',
|
$aOptionalExtensions = self::GetPHPOptionalExtensions();
|
||||||
'iconv',
|
|
||||||
'simplexml',
|
|
||||||
'soap',
|
|
||||||
'hash',
|
|
||||||
'json',
|
|
||||||
'session',
|
|
||||||
'pcre',
|
|
||||||
'dom',
|
|
||||||
'zlib',
|
|
||||||
'gd', // test image type (always returns false if not installed), image resizing, PDF export
|
|
||||||
);
|
|
||||||
$aOptionalExtensions = array(
|
|
||||||
'mcrypt, sodium or openssl' =>
|
|
||||||
array(
|
|
||||||
'mcrypt' => 'Strong encryption will not be used.',
|
|
||||||
'sodium' => 'Strong encryption will not be used.',
|
|
||||||
'openssl' => 'Strong encryption will not be used.',
|
|
||||||
),
|
|
||||||
'ldap' => 'LDAP authentication will be disabled.',
|
|
||||||
'mbstring' => 'For CryptEngine implementations, trace in Mail to ticket automation', // N°2891
|
|
||||||
);
|
|
||||||
|
|
||||||
asort($aMandatoryExtensions); // Sort the list to look clean !
|
asort($aMandatoryExtensions); // Sort the list to look clean !
|
||||||
ksort($aOptionalExtensions); // Sort the list to look clean !
|
ksort($aOptionalExtensions); // Sort the list to look clean !
|
||||||
@@ -2122,6 +2101,50 @@ JS
|
|||||||
IssueLog::Info($sText);
|
IssueLog::Info($sText);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return string[]
|
||||||
|
*/
|
||||||
|
public static function GetPHPMandatoryExtensions(): array
|
||||||
|
{
|
||||||
|
return [
|
||||||
|
'mysqli',
|
||||||
|
'iconv',
|
||||||
|
'simplexml',
|
||||||
|
'soap',
|
||||||
|
'hash',
|
||||||
|
'json',
|
||||||
|
'session',
|
||||||
|
'pcre',
|
||||||
|
'dom',
|
||||||
|
'zlib',
|
||||||
|
'zip',
|
||||||
|
'fileinfo', // N°3123
|
||||||
|
'gd', // test image type (always returns false if not installed), image resizing, PDF export
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return array
|
||||||
|
*/
|
||||||
|
public static function GetPHPOptionalExtensions(): array
|
||||||
|
{
|
||||||
|
$aOptionalExtensions = [
|
||||||
|
'mcrypt, sodium or openssl' => [
|
||||||
|
'mcrypt' => 'Strong encryption will not be used.',
|
||||||
|
'sodium' => 'Strong encryption will not be used.',
|
||||||
|
'openssl' => 'Strong encryption will not be used.',
|
||||||
|
],
|
||||||
|
'ldap' => 'LDAP authentication will be disabled.',
|
||||||
|
'mbstring' => 'For CryptEngine implementations, trace in Mail to ticket automation', // N°2891
|
||||||
|
];
|
||||||
|
|
||||||
|
if (utils::IsDevelopmentEnvironment()) {
|
||||||
|
$aOptionalExtensions['xdebug'] = 'For debugging';
|
||||||
|
}
|
||||||
|
|
||||||
|
return $aOptionalExtensions;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user