Changeset View
Changeset View
Standalone View
Standalone View
core/install/prerequisites.php
Show First 20 Lines • Show All 139 Lines • ▼ Show 20 Line(s) | |||||
$gd_version = preg_replace('/[^\d.]/', '', $gd_info['GD Version']); | $gd_version = preg_replace('/[^\d.]/', '', $gd_info['GD Version']); | ||||
$ret['gd_version'] = version_compare($gd_version, '1.8', '>='); | $ret['gd_version'] = version_compare($gd_version, '1.8', '>='); | ||||
} | } | ||||
$ret['jpeg'] = function_exists('imagecreatefromjpeg'); | $ret['jpeg'] = function_exists('imagecreatefromjpeg'); | ||||
$ret['mysql'] = function_exists('mysqli_connect'); | $ret['mysql'] = function_exists('mysqli_connect'); | ||||
$ret['json'] = function_exists('json_encode'); | $ret['json'] = function_exists('json_encode'); | ||||
// Unable to properly use "SecurityEncrypter::cipherAvailable" method, because no factory here. | |||||
$ret['openssl'] = function_exists('openssl_encrypt') && in_array('aes-128-cbc', openssl_get_cipher_methods(), true); | |||||
Lint: Generic.Files.LineLength.TooLong: Line exceeds 120 characters; contains 128 characters | |||||
$output = shell_exec('java -version 2>&1'); | $output = shell_exec('java -version 2>&1'); | ||||
$ret['java'] = stripos($output, 'java version') !== false; | $ret['java'] = stripos($output, 'java version') !== false; | ||||
$ret['composer'] = file_exists(FULL_PATH . '/vendor/autoload.php'); | $ret['composer'] = file_exists(FULL_PATH . '/vendor/autoload.php'); | ||||
$ret['memory_limit'] = $this->isPhpSettingChangeable('memory_limit', '33M'); | $ret['memory_limit'] = $this->isPhpSettingChangeable('memory_limit', '33M'); | ||||
$ret['display_errors'] = $this->isPhpSettingChangeable('display_errors', '1'); | $ret['display_errors'] = $this->isPhpSettingChangeable('display_errors', '1'); | ||||
$ret['error_reporting'] = $this->canChangeErrorReporting(); | $ret['error_reporting'] = $this->canChangeErrorReporting(); | ||||
▲ Show 20 Lines • Show All 88 Lines • Show Last 20 Lines |
Line exceeds 120 characters; contains 128 characters