ConfReport
in package
Conf report.
Table of Contents
- $container : array<string|int, string>
- List all container.
- $database : array<string|int, mixed>
- Database map.
- $dbConfig : array<string|int, mixed>
- $environment : array<string|int, mixed>
- Environment map.
- $errors : array<string|int, string>
- Errors.
- $functionalVerification : array<string|int, mixed>
- Functionality test map.
- $headers : array<string|int, mixed>
- Headers variables map.
- $libraries : array<string|int, mixed>
- Libraries map.
- $pathVerification : array<string|int, mixed>
- Path verification.
- $performance : array<string|int, mixed>
- Performance map.
- $publicDirectoryAccess : array<string|int, mixed>
- Directory permissions map.
- $sapi : string
- Sapi name.
- $security : array<string|int, mixed>
- Security variables map.
- $stability : array<string|int, mixed>
- Stability variables map.
- $testCli : string
- $types : array<string|int, string>
- List all variables.
- $urlsToCheck : array<string|int, mixed>
- $writableFilesAndFolders : array<string|int, mixed>
- Writable files and folders permissions map.
- $crmUrl : string
- $db : array<string|int, mixed>
- Database variables.
- $env : array<string|int, mixed>
- Environment variables.
- $ext : array<string|int, mixed>
- Extensions.
- $php : array<string|int, mixed>
- Php variables.
- $request : array<string|int, mixed>
- Request request.
- get() : mixed
- Get configuration values by type of map.
- getAll() : array<string|int, mixed>
- Get all configuration values.
- getAllErrors() : array<string|int, mixed>
- Get all configuration error values.
- getByType() : array<string|int, mixed>
- Get configuration values by type.
- getConfig() : array<string|int, mixed>
- Get environment variables.
- getCronVariables() : mixed
- Get variable for cron.
- getEnv() : array<string|int, mixed>
- Get environment variables.
- getErrors() : array<string|int, mixed>
- Get configuration error values.
- getNewestPhpVersion() : array<string|int, string>
- Get actual version of PHP.
- saveEnv() : void
- Save environment variables.
- validatePath() : bool
- Check open_basedir restrictions.
- validateRegister() : array<string|int, mixed>
- Validate register.
- validateShopCache() : array<string|int, mixed>
- Validate shop cache.
- validateWatchdog() : array<string|int, mixed>
- Validate watchdog.
- getRequest() : array<string|int, mixed>
- Get request request.
- init() : mixed
- Initializing variables.
- parse() : array<string|int, mixed>
- Parser of configuration values.
- parserAllExt() : array<string|int, mixed>
- Parser all extensions value.
- parserHttpMethods() : array<string|int, mixed>
- Parser http methods value.
- parserOnOff() : string
- Parser on or off value.
- validate() : mixed
- Validating configuration values.
- validateAllExt() : array<string|int, mixed>
- Validate exists url.
- validateBranding() : array<string|int, mixed>
- Validate branding value.
- validateCookieSamesite() : array<string|int, mixed>
- Validate session.cookie_samesite.
- validateCookieSecure() : array<string|int, mixed>
- Validate session.cookie_secure.
- validateCronEqual() : array<string|int, mixed>
- Validate equal value "cron == www".
- validateDbOpenFilesLimit() : array<string|int, mixed>
- Validate DB open_files_limit.
- validateDbTableDefinitionCache() : array<string|int, mixed>
- Validate number greater than another parameter.
- validateEqual() : array<string|int, mixed>
- Validate equal value "recommended == current".
- validateErrorLog() : array<string|int, mixed>
- Validate check error_log.
- validateErrorReporting() : array<string|int, mixed>
- Validate error reporting.
- validateExistsUrl() : array<string|int, mixed>
- Validate exists url.
- validateExtExist() : array<string|int, mixed>
- Validate extension loaded.
- validateExtNotExist() : array<string|int, mixed>
- Validate extension loaded.
- validateFnExist() : array<string|int, mixed>
- Validate function exist.
- validateGreater() : array<string|int, mixed>
- Validate number greater than recommended.
- validateGreaterMb() : array<string|int, mixed>
- Validate number in bytes greater than recommended.
- validateHeader() : array<string|int, mixed>
- Validate header.
- validateHeaderCsp() : array<string|int, mixed>
- Validate header CSP.
- validateHeaderServer() : array<string|int, mixed>
- Validate header CSP.
- validateHttpMethods() : array<string|int, mixed>
- Validate http methods.
- validateIn() : array<string|int, mixed>
- Validate in array.
- validateIsWritable() : array<string|int, mixed>
- Validate realpath cache size.
- validateNotEmpty() : array<string|int, mixed>
- Validate check if value is empty.
- validateNotExistsUrl() : array<string|int, mixed>
- Validate not exists url.
- validateNotIn() : array<string|int, mixed>
- Validate not in array.
- validateOneOf() : array<string|int, mixed>
- Validate one of array.
- validateOnOff() : array<string|int, mixed>
- Validate on or off value.
- validateOnOffInt() : array<string|int, mixed>
- Validate on, off and int values.
- validateOpenBasedir() : array<string|int, mixed>
- Validate open_basedir.
- validateSessionRegenerate() : array<string|int, mixed>
- Validate session_regenerate_id.
- validateShowBytes() : array<string|int, mixed>
- Display number in bytes.
- validateSpace() : array<string|int, mixed>
- Validate disc space value.
- validateTimeZone() : array<string|int, mixed>
- Validate date timezone.
- validateVersion() : mixed
- Validate php version.
- validateVersionDb() : bool
- Validate database version.
- validateWebservice() : array<string|int, mixed>
- Validate webservice.
Properties
$container
List all container.
public
static array<string|int, string>
$container
= ['php', 'env', 'ext', 'request', 'db', 'writableFilesAndFolders']
$database
Database map.
public
static array<string|int, mixed>
$database
= [
'driver' => ['recommended' => 'mysql', 'type' => 'Equal', 'container' => 'db', 'testCli' => true, 'label' => 'DB_DRIVER'],
'typeDb' => ['container' => 'db', 'testCli' => true, 'label' => 'DB_VERSION_TYPE'],
'serverVersion' => ['recommended' => ['MariaDb' => '10.x', 'MySQL' => '5.6.x'], 'type' => 'VersionDb', 'container' => 'db', 'testCli' => true, 'label' => 'DB_SERVER_VERSION'],
'clientVersion' => ['container' => 'db', 'testCli' => true, 'label' => 'DB_CLIENT_VERSION'],
'version_comment' => ['container' => 'db', 'testCli' => true, 'label' => 'DB_VERSION_COMMENT'],
'connectionStatus' => ['container' => 'db', 'testCli' => true, 'label' => 'DB_CONNECTION_STATUS'],
'serverInfo' => ['container' => 'db', 'testCli' => true, 'label' => 'DB_SERVER_INFO'],
'maxUsedMemory' => ['container' => 'db', 'type' => 'ShowBytes', 'testCli' => true, 'label' => 'DB_MAXIMUM_MEMORY_SIZE', 'showHelp' => true, 'desc' => 'maxUsedMemoryDesc'],
'key_buffer_size' => ['container' => 'db', 'type' => 'ShowBytes', 'testCli' => true],
'max_tmp_table_size' => ['container' => 'db', 'type' => 'ShowBytes', 'testCli' => true],
'aria_pagecache_buffer_size' => ['container' => 'db', 'type' => 'ShowBytes', 'testCli' => true],
'have_query_cache' => ['container' => 'db', 'testCli' => true],
'query_cache_size' => ['container' => 'db', 'type' => 'ShowBytes', 'testCli' => true],
'query_cache_type' => ['container' => 'db', 'testCli' => true],
'table_cache' => ['container' => 'db', 'testCli' => true],
'table_open_cache_instances' => ['container' => 'db', 'testCli' => true],
'table_open_cache' => ['recommended' => 1000, 'type' => 'Greater', 'container' => 'db', 'testCli' => true, 'mode' => 'showWarnings'],
'table_definition_cache' => ['type' => 'DbTableDefinitionCache', 'container' => 'db', 'testCli' => true, 'mode' => 'showWarnings'],
'open_files_limit' => ['container' => 'db', 'type' => 'DbOpenFilesLimit', 'testCli' => true],
'tmp_table_size' => ['container' => 'db', 'type' => 'ShowBytes', 'testCli' => true],
'innodb_buffer_pool_size' => ['container' => 'db', 'type' => 'ShowBytes', 'testCli' => true],
'innodb_additional_mem_pool_size' => ['container' => 'db', 'type' => 'ShowBytes', 'testCli' => true],
'innodb_log_buffer_size' => ['container' => 'db', 'type' => 'ShowBytes', 'testCli' => true],
'max_connections' => ['container' => 'db', 'testCli' => true],
'sort_buffer_size' => ['container' => 'db', 'type' => 'ShowBytes', 'testCli' => true],
'myisam_sort_buffer_size' => ['container' => 'db', 'type' => 'ShowBytes', 'testCli' => true],
'read_buffer_size' => ['container' => 'db', 'type' => 'ShowBytes', 'testCli' => true],
'read_rnd_buffer_size' => ['container' => 'db', 'type' => 'ShowBytes', 'testCli' => true],
'join_buffer_size' => ['container' => 'db', 'type' => 'ShowBytes', 'testCli' => true],
'thread_stack' => ['container' => 'db', 'type' => 'ShowBytes', 'testCli' => true],
'binlog_cache_size' => ['container' => 'db', 'type' => 'ShowBytes', 'testCli' => true],
'bulk_insert_buffer_size' => ['container' => 'db', 'type' => 'ShowBytes', 'testCli' => true],
'max_heap_table_size' => ['container' => 'db', 'type' => 'ShowBytes', 'testCli' => true],
'innodb_log_file_size' => ['container' => 'db', 'type' => 'ShowBytes', 'testCli' => true],
'innodb_lock_wait_timeout' => ['recommended' => 600, 'type' => 'Greater', 'container' => 'db', 'testCli' => true],
'wait_timeout' => ['recommended' => 600, 'type' => 'Greater', 'container' => 'db', 'testCli' => true],
'interactive_timeout' => ['recommended' => 600, 'type' => 'Greater', 'container' => 'db', 'testCli' => true],
'sql_mode' => ['recommended' => '', 'type' => 'NotIn', 'container' => 'db', 'testCli' => true, 'exclusions' => ['STRICT_ALL_TABLES', 'STRICT_TRANS_TABLE']],
'max_allowed_packet' => ['recommended' => '10 MB', 'type' => 'GreaterMb', 'container' => 'db', 'testCli' => true],
'thread_cache_size' => ['container' => 'db', 'testCli' => true],
'tx_isolation' => ['container' => 'db', 'testCli' => true],
'transaction_isolation' => ['container' => 'db', 'testCli' => true],
'ft_min_word_len' => ['container' => 'db', 'testCli' => true],
'innodb_ft_min_token_size' => ['container' => 'db', 'testCli' => true],
'innodb_default_row_format' => ['recommended' => 'dynamic', 'type' => 'Equal', 'container' => 'db', 'testCli' => true],
'innodb_strict_mode' => ['container' => 'db', 'testCli' => true],
'innodb_large_prefix' => ['recommended' => 'On', 'type' => 'OnOff', 'container' => 'db', 'testCli' => true],
//Roundcube
'innodb_file_per_table' => ['recommended' => 'On', 'type' => 'OnOff', 'container' => 'db', 'testCli' => true],
//Roundcube
'innodb_stats_on_metadata' => ['recommended' => 'Off', 'type' => 'OnOff', 'container' => 'db', 'testCli' => true],
'innodb_buffer_pool_instances' => ['container' => 'db', 'testCli' => true],
'innodb_buffer_pool_load_at_startup' => ['container' => 'db', 'testCli' => true],
'innodb_io_capacity' => ['container' => 'db', 'testCli' => true],
'innodb_io_capacity_max' => ['container' => 'db', 'testCli' => true],
'innodb_file_format' => ['container' => 'db', 'testCli' => true],
'innodb_file_format_check' => ['container' => 'db', 'testCli' => true],
'innodb_file_format_max' => ['container' => 'db', 'testCli' => true],
'character_set_server' => ['recommended' => 'utf8', 'values' => ['utf8', 'utf8mb3', 'utf8mb4'], 'type' => 'OneOf', 'container' => 'db', 'testCli' => true],
'character_set_database' => ['recommended' => 'utf8', 'values' => ['utf8', 'utf8mb3', 'utf8mb4'], 'type' => 'OneOf', 'container' => 'db', 'testCli' => true],
'character_set_client' => ['recommended' => 'utf8', 'values' => ['utf8', 'utf8mb3', 'utf8mb4'], 'type' => 'OneOf', 'container' => 'db', 'testCli' => true],
'character_set_connection' => ['recommended' => 'utf8', 'values' => ['utf8', 'utf8mb3', 'utf8mb4'], 'type' => 'OneOf', 'container' => 'db', 'testCli' => true],
'character_set_results' => ['recommended' => 'utf8', 'values' => ['utf8', 'utf8mb3', 'utf8mb4'], 'type' => 'OneOf', 'container' => 'db', 'testCli' => true],
'character_set_system' => ['container' => 'db', 'testCli' => true],
'character_set_filesystem' => ['container' => 'db', 'testCli' => true],
'datadir' => ['container' => 'db', 'testCli' => true],
'connect_timeout' => ['container' => 'db', 'testCli' => true],
'lock_wait_timeout' => ['container' => 'db', 'testCli' => true],
'net_read_timeout' => ['container' => 'db', 'testCli' => true],
'net_write_timeout' => ['container' => 'db', 'testCli' => true],
'aria_recover_options' => ['container' => 'db', 'testCli' => true],
'aria_recover' => ['container' => 'db', 'testCli' => true],
'hostname' => ['container' => 'db', 'testCli' => true],
'innodb_checksum_algorithm' => ['container' => 'db', 'testCli' => true],
'innodb_flush_method' => ['container' => 'db', 'testCli' => true],
'innodb_thread_sleep_delay' => ['container' => 'db', 'testCli' => true],
'innodb_thread_concurrency' => ['container' => 'db', 'testCli' => true],
'innodb_adaptive_max_sleep_delay' => ['container' => 'db', 'testCli' => true],
'innodb_read_ahead_threshold' => ['container' => 'db', 'testCli' => true],
'innodb_max_dirty_pages_pct_lwm' => ['container' => 'db', 'testCli' => true],
'innodb_open_files' => ['container' => 'db', 'testCli' => true],
'thread_pool_max_threads' => ['container' => 'db', 'testCli' => true],
'innodb_read_io_threads' => ['container' => 'db', 'testCli' => true],
'innodb_write_io_threads' => ['container' => 'db', 'testCli' => true],
'lower_case_file_system' => ['container' => 'db', 'testCli' => true],
'lower_case_table_names' => ['container' => 'db', 'testCli' => true],
'system_time_zone' => ['container' => 'db', 'testCli' => true],
'use_stat_tables' => ['container' => 'db', 'testCli' => true],
'thread_handling' => ['container' => 'db', 'testCli' => true],
'host_cache_size' => ['container' => 'db', 'testCli' => true],
'optimizer_search_depth' => ['container' => 'db', 'testCli' => true],
'version_compile_machine' => ['container' => 'db', 'testCli' => true],
'version_compile_os' => ['container' => 'db', 'testCli' => true],
'socket' => ['container' => 'db', 'testCli' => true],
'back_log' => ['container' => 'db', 'testCli' => true],
'log_bin' => ['container' => 'db', 'testCli' => true],
'log_bin_basename' => ['container' => 'db', 'testCli' => true],
'log_slave_updates' => ['container' => 'db', 'testCli' => true],
'binlog_format' => ['container' => 'db', 'testCli' => true],
'max_binlog_size' => ['container' => 'db', 'type' => 'ShowBytes', 'testCli' => true],
'slow_query_log' => ['container' => 'db', 'testCli' => true],
'slow_query_log_file' => ['container' => 'db', 'testCli' => true],
'log_slow_admin_statements' => ['container' => 'db', 'testCli' => true],
'general_log' => ['container' => 'db', 'testCli' => true],
'general_log_file' => ['container' => 'db', 'testCli' => true],
'log_error' => ['container' => 'db', 'testCli' => true],
'log_warnings' => ['container' => 'db', 'testCli' => true],
'log_output' => ['container' => 'db', 'testCli' => true],
]
$dbConfig
public
static array<string|int, mixed>
$dbConfig
= ['dsn' => 'mysql:host=127.0.0.1;port=3306;dbname=yetiforce;', 'user' => '', 'password' => '', 'options' => []]
Optional database configuration for offline use.
$environment
Environment map.
public
static array<string|int, mixed>
$environment
= ['crmVersion' => ['container' => 'env', 'testCli' => false, 'label' => 'CRM_VERSION'], 'crmDate' => ['container' => 'env', 'testCli' => false, 'label' => 'CRM_DATE'], 'operatingSystem' => ['container' => 'env', 'testCli' => true, 'label' => 'OPERATING_SYSTEM'], 'serverSoftware' => ['container' => 'env', 'testCli' => false, 'label' => 'SERVER_SOFTWARE'], 'currentUser' => ['container' => 'env', 'type' => 'CronEqual', 'testCli' => true, 'label' => 'SCRIPT_USER'], 'tempDir' => ['container' => 'env', 'testCli' => true, 'label' => 'TMP_DIR'], 'crmDir' => ['container' => 'env', 'testCli' => false, 'label' => 'CRM_DIR'], 'sapi' => ['container' => 'env', 'testCli' => true, 'label' => 'PHP_SAPI'], 'zendVersion' => ['container' => 'env', 'testCli' => true, 'label' => 'ZEND_VERSION'], 'locale' => ['container' => 'env', 'testCli' => true, 'label' => 'LOCALE'], 'error_log' => ['type' => 'ErrorLog', 'container' => 'php', 'testCli' => true, 'label' => 'LOG_FILE'], 'phpIni' => ['container' => 'env', 'testCli' => true, 'label' => 'PHPINI'], 'phpIniAll' => ['container' => 'env', 'testCli' => true, 'label' => 'PHPINIS'], 'spaceRoot' => ['container' => 'env', 'type' => 'Space', 'testCli' => false, 'label' => 'SPACE_ROOT'], 'spaceStorage' => ['container' => 'env', 'type' => 'Space', 'testCli' => false, 'label' => 'SPACE_STORAGE'], 'spaceTemp' => ['container' => 'env', 'type' => 'Space', 'testCli' => false, 'label' => 'SPACE_TEMP'], 'spaceBackup' => ['container' => 'env', 'type' => 'Space', 'testCli' => false, 'label' => 'SPACE_BACKUP'], 'lastCronStart' => ['container' => 'env', 'testCli' => false, 'label' => 'LAST_CRON_START', 'isHtml' => true], 'crmProvider' => ['container' => 'env', 'testCli' => true, 'label' => 'CRM_PROVIDER'], 'appId' => ['container' => 'env', 'testCli' => true, 'label' => 'APP_ID'], 'open_basedir' => ['container' => 'php', 'type' => 'OpenBasedir', 'testCli' => true, 'mode' => 'showWarnings'], 'caCertBundle' => ['recommended' => 'On', 'container' => 'env', 'type' => 'OnOff', 'testCli' => true, 'label' => 'CACERTBUNDLE'], 'caCertBundlePath' => ['recommended' => 'On', 'container' => 'env', 'testCli' => true, 'label' => 'CACERTBUNDLE_PATH'], 'SSL_CERT_FILE' => ['container' => 'env', 'testCli' => true, 'label' => 'SSL_CERT_FILE'], 'SSL_CERT_DIR' => ['container' => 'env', 'testCli' => true, 'label' => 'SSL_CERT_DIR'], 'openssl.cafile' => ['container' => 'php', 'type' => 'NotEmpty', 'testCli' => true, 'mode' => 'showWarnings'], 'openssl.capath' => ['container' => 'php', 'type' => 'NotEmpty', 'testCli' => true, 'mode' => 'showWarnings']]
$errors
Errors.
public
static array<string|int, string>
$errors
= []
$functionalVerification
Functionality test map.
public
static array<string|int, mixed>
$functionalVerification
= ['branding' => ['type' => 'Branding', 'testCli' => false, 'label' => 'FOOTER', 'mode' => 'onlyText'], 'watchdog' => ['type' => 'Watchdog', 'testCli' => true, 'label' => 'WATCHDOG', 'mode' => 'onlyText'], 'register' => ['type' => 'Register', 'testCli' => true, 'label' => 'REGISTER', 'mode' => 'onlyText']]
$headers
Headers variables map.
public
static array<string|int, mixed>
$headers
= ['Header: server' => ['recommended' => '', 'type' => 'HeaderServer', 'container' => 'request', 'testCli' => false], 'Header: x-powered-by' => ['recommended' => '', 'type' => 'Header', 'contaiuse_only_cookiesner' => 'request', 'testCli' => false], 'Header: access-control-allow-methods' => ['recommended' => 'GET, POST', 'type' => 'Header', 'container' => 'request', 'testCli' => false, 'onlyPhp' => true], 'Header: access-control-allow-origin' => ['recommended' => '*', 'type' => 'Header', 'container' => 'request', 'testCli' => false, 'onlyPhp' => true], 'Header: referrer-policy' => ['recommended' => 'no-referrer', 'type' => 'Header', 'container' => 'request', 'testCli' => false], 'Header: expect-ct' => ['recommended' => 'enforce; max-age=3600', 'type' => 'Header', 'container' => 'request', 'testCli' => false], 'Header: x-frame-options' => ['recommended' => 'sameorigin', 'type' => 'Header', 'container' => 'request', 'testCli' => false], 'Header: x-xss-protection' => ['recommended' => '1; mode=block', 'type' => 'Header', 'container' => 'request', 'testCli' => false], 'Header: x-content-type-options' => ['recommended' => 'nosniff', 'type' => 'Header', 'container' => 'request', 'testCli' => false], 'Header: x-robots-tag' => ['recommended' => 'none', 'type' => 'Header', 'container' => 'request', 'testCli' => false], 'Header: x-permitted-cross-domain-policies' => ['recommended' => 'none', 'type' => 'Header', 'container' => 'request', 'testCli' => false], 'Header: strict-transport-security' => ['recommended' => 'max-age=31536000; includeSubDomains; preload', 'type' => 'Header', 'container' => 'request', 'testCli' => false, 'httpsRequired' => true], 'Header: content-security-policy' => ['recommended' => '', 'type' => 'HeaderCsp', 'container' => 'request', 'testCli' => false]]
$libraries
Libraries map.
public
static array<string|int, mixed>
$libraries
= ['imap' => ['mandatory' => true, 'type' => 'ExtExist', 'extName' => 'imap', 'container' => 'ext', 'testCli' => true], 'PDO' => ['mandatory' => true, 'type' => 'ExtExist', 'extName' => 'PDO', 'container' => 'ext', 'testCli' => true], 'pdo_mysql' => ['mandatory' => true, 'type' => 'ExtExist', 'extName' => 'pdo_mysql', 'container' => 'ext', 'testCli' => true], 'mysqlnd' => ['mandatory' => true, 'type' => 'ExtExist', 'extName' => 'mysqlnd', 'container' => 'ext', 'testCli' => true], 'openssl' => ['mandatory' => true, 'type' => 'ExtExist', 'extName' => 'openssl', 'container' => 'ext', 'testCli' => true], 'curl' => ['mandatory' => true, 'type' => 'ExtExist', 'extName' => 'curl', 'container' => 'ext', 'testCli' => true], 'gd' => ['mandatory' => true, 'type' => 'ExtExist', 'extName' => 'gd', 'container' => 'ext', 'testCli' => true], 'pcre' => ['mandatory' => true, 'type' => 'ExtExist', 'extName' => 'pcre', 'container' => 'ext', 'testCli' => true], 'xml' => ['mandatory' => true, 'type' => 'ExtExist', 'extName' => 'xml', 'container' => 'ext', 'testCli' => true], 'json' => ['mandatory' => true, 'type' => 'ExtExist', 'extName' => 'json', 'container' => 'ext', 'testCli' => true], 'session' => ['mandatory' => true, 'type' => 'ExtExist', 'extName' => 'session', 'container' => 'ext', 'testCli' => true], 'dom' => ['mandatory' => true, 'type' => 'ExtExist', 'extName' => 'dom', 'container' => 'ext', 'testCli' => true], 'zip' => ['mandatory' => true, 'type' => 'ExtExist', 'extName' => 'zip', 'container' => 'ext', 'testCli' => true], 'mbstring' => ['mandatory' => true, 'type' => 'ExtExist', 'extName' => 'mbstring', 'container' => 'ext', 'testCli' => true], 'soap' => ['mandatory' => true, 'type' => 'ExtExist', 'extName' => 'soap', 'container' => 'ext', 'testCli' => true], 'fileinfo' => ['mandatory' => true, 'type' => 'ExtExist', 'extName' => 'fileinfo', 'container' => 'ext', 'testCli' => true], 'iconv' => ['mandatory' => true, 'type' => 'ExtExist', 'extName' => 'iconv', 'container' => 'ext', 'testCli' => true], 'intl' => ['mandatory' => true, 'type' => 'ExtExist', 'extName' => 'intl', 'container' => 'ext', 'testCli' => true], 'SPL' => ['mandatory' => true, 'type' => 'ExtExist', 'extName' => 'SPL', 'container' => 'ext', 'testCli' => true], 'Reflection' => ['mandatory' => true, 'type' => 'ExtExist', 'extName' => 'Reflection', 'container' => 'ext', 'testCli' => true], 'SimpleXML' => ['mandatory' => true, 'type' => 'ExtExist', 'extName' => 'SimpleXML', 'container' => 'ext', 'testCli' => true], 'bcmath' => ['mandatory' => true, 'type' => 'ExtExist', 'extName' => 'bcmath', 'container' => 'ext', 'testCli' => true], 'filter' => ['mandatory' => true, 'type' => 'ExtExist', 'extName' => 'filter', 'container' => 'ext', 'testCli' => true], 'ctype' => ['mandatory' => true, 'type' => 'ExtExist', 'extName' => 'ctype', 'container' => 'ext', 'testCli' => true], 'hash' => ['mandatory' => true, 'type' => 'ExtExist', 'extName' => 'hash', 'container' => 'ext', 'testCli' => true], 'exif' => ['mandatory' => false, 'type' => 'ExtExist', 'extName' => 'exif', 'container' => 'ext', 'testCli' => true, 'showHelp' => true, 'mode' => 'showWarnings'], 'ldap' => ['mandatory' => false, 'type' => 'ExtExist', 'extName' => 'ldap', 'container' => 'ext', 'testCli' => true, 'showHelp' => true, 'mode' => 'showWarnings'], 'OPcache' => ['mandatory' => false, 'type' => 'ExtExist', 'extName' => 'Zend OPcache', 'container' => 'ext', 'testCli' => true, 'showHelp' => true, 'mode' => 'showWarnings'], 'apcu' => ['mandatory' => false, 'type' => 'ExtExist', 'extName' => 'apcu', 'container' => 'ext', 'testCli' => true, 'showHelp' => true, 'mode' => 'showWarnings'], 'imagick' => ['mandatory' => false, 'type' => 'ExtExist', 'extName' => 'imagick', 'container' => 'ext', 'testCli' => true, 'showHelp' => true, 'mode' => 'showWarnings'], 'pdo_sqlsrv' => ['mandatory' => false, 'type' => 'ExtExist', 'extName' => 'pdo_sqlsrv', 'container' => 'ext', 'testCli' => true, 'showHelp' => false, 'mode' => 'showWarnings'], 'allExt' => ['container' => 'ext', 'type' => 'AllExt', 'testCli' => true, 'label' => 'EXTENSIONS']]
$pathVerification
Path verification.
public
static array<string|int, mixed>
$pathVerification
= ['webservice/WebserviceStandard/' => ['type' => 'Webservice', 'container' => 'request', 'testCli' => false], '.well-known/carddav' => ['type' => 'ExistsUrl', 'container' => 'request', 'testCli' => false], '.well-known/caldav' => ['type' => 'ExistsUrl', 'container' => 'request', 'testCli' => false], 'robots.txt' => ['type' => 'ExistsUrl', 'container' => 'request', 'testCli' => false], 'install/index.php' => ['type' => 'NotExistsUrl', 'container' => 'request', 'testCli' => false]]
$performance
Performance map.
public
static array<string|int, mixed>
$performance
= ['xdebug' => ['recommended' => 'Off', 'type' => 'ExtNotExist', 'extName' => 'xdebug', 'container' => 'ext', 'testCli' => true], 'opcache.enable' => ['recommended' => 'On', 'type' => 'OnOff', 'container' => 'php', 'testCli' => true], 'opcache.enable_cli' => ['recommended' => 'On', 'type' => 'OnOff', 'container' => 'php', 'testCli' => true], 'opcache.max_accelerated_files' => ['recommended' => 40000, 'type' => 'Greater', 'container' => 'php', 'testCli' => true], 'opcache.interned_strings_buffer' => ['recommended' => 100, 'type' => 'Greater', 'container' => 'php', 'testCli' => true], 'opcache.validate_timestamps' => ['recommended' => 1, 'type' => 'Equal', 'container' => 'php', 'testCli' => true], 'opcache.revalidate_freq' => ['recommended' => 0, 'type' => 'Equal', 'container' => 'php', 'testCli' => true], 'opcache.save_comments' => ['recommended' => 0, 'type' => 'Equal', 'container' => 'php', 'testCli' => true], 'opcache.file_update_protection' => ['recommended' => 0, 'type' => 'Equal', 'container' => 'php', 'testCli' => true], 'opcache.memory_consumption' => ['container' => 'php', 'testCli' => true], 'realpath_cache_size' => ['recommended' => '256k', 'type' => 'GreaterMb', 'container' => 'php', 'testCli' => true], 'realpath_cache_ttl' => ['recommended' => 600, 'type' => 'Greater', 'container' => 'php', 'testCli' => true], 'mysqlnd.collect_statistics' => ['recommended' => 'Off', 'type' => 'OnOff', 'container' => 'php', 'testCli' => true], 'mysqlnd.collect_memory_statistics' => ['recommended' => 'Off', 'type' => 'OnOff', 'container' => 'php', 'testCli' => true], 'apc.enabled' => ['container' => 'php', 'testCli' => true], 'apc.enable_cli' => ['container' => 'php', 'testCli' => true], 'apc.preload_path' => ['container' => 'php', 'testCli' => true], 'apc.ttl' => ['container' => 'php', 'testCli' => true], 'apc.user_ttl' => ['container' => 'php', 'testCli' => true], 'apc.num_files_hint' => ['container' => 'php', 'testCli' => true], 'apc.stat' => ['container' => 'php', 'testCli' => true], 'apc.optimization' => ['container' => 'php', 'testCli' => true], 'apc.cache_by_default' => ['container' => 'php', 'testCli' => true], 'apc.mmap_file_mask' => ['container' => 'php', 'testCli' => true], 'apc.shm_segments' => ['container' => 'php', 'testCli' => true]]
$publicDirectoryAccess
Directory permissions map.
public
static array<string|int, mixed>
$publicDirectoryAccess
= ['config' => ['type' => 'NotExistsUrl', 'container' => 'request', 'testCli' => false], 'cache' => ['type' => 'NotExistsUrl', 'container' => 'request', 'testCli' => false], 'app_data' => ['type' => 'NotExistsUrl', 'container' => 'request', 'testCli' => false], 'storage' => ['type' => 'NotExistsUrl', 'container' => 'request', 'testCli' => false], 'user_privileges' => ['type' => 'NotExistsUrl', 'container' => 'request', 'testCli' => false]]
$sapi
Sapi name.
public
static string
$sapi
= 'www'
$security
Security variables map.
public
static array<string|int, mixed>
$security
= ['HTTPS' => ['recommended' => 'On', 'type' => 'OnOff', 'container' => 'env', 'testCli' => false], 'public_html' => ['recommended' => 'On', 'type' => 'OnOff', 'container' => 'env', 'testCli' => false], 'display_errors' => ['recommended' => 'Off', 'type' => 'OnOff', 'container' => 'php', 'demoMode' => true, 'testCli' => true], 'session.use_strict_mode' => ['recommended' => 'On', 'type' => 'OnOff', 'container' => 'php', 'testCli' => true], 'session.use_trans_sid' => ['recommended' => 'Off', 'type' => 'OnOff', 'container' => 'php', 'testCli' => true], 'session.cookie_httponly' => ['recommended' => 'On', 'type' => 'OnOff', 'container' => 'php', 'testCli' => false], 'session.use_only_cookies' => ['recommended' => 'On', 'type' => 'OnOff', 'container' => 'php', 'testCli' => false], 'session.cookie_secure' => ['recommended' => '', 'type' => 'CookieSecure', 'container' => 'php', 'testCli' => false], 'session.cookie_samesite' => ['recommended' => '', 'type' => 'CookieSamesite', 'container' => 'php', 'testCli' => false], 'session.name' => ['recommended' => 'YTSID', 'container' => 'php', 'type' => 'Equal', 'testCli' => false], 'expose_php' => ['recommended' => 'Off', 'type' => 'OnOff', 'container' => 'php', 'testCli' => true], 'session_regenerate_id' => ['recommended' => 'On', 'type' => 'SessionRegenerate', 'testCli' => true], 'disable_functions' => ['recommended' => 'shell_exec, exec, system, passthru, popen', 'type' => 'In', 'container' => 'php', 'testCli' => false], 'allow_url_include' => ['recommended' => 'Off', 'type' => 'OnOff', 'container' => 'php', 'testCli' => true]]
$stability
Stability variables map.
public
static array<string|int, mixed>
$stability
= [
'phpVersion' => ['recommended' => '7.4.x, 8.0.x, 8.1.x (dev)', 'type' => 'Version', 'container' => 'env', 'testCli' => true, 'label' => 'PHP'],
'protocolVersion' => ['recommended' => '2.0, 1.x', 'type' => 'Version', 'container' => 'env', 'testCli' => false, 'label' => 'PROTOCOL_VERSION'],
'error_reporting' => ['recommended' => 'E_ALL & ~E_NOTICE', 'type' => 'ErrorReporting', 'container' => 'php', 'testCli' => true],
'output_buffering' => ['recommended' => 'On', 'type' => 'OnOffInt', 'container' => 'php', 'testCli' => true],
'max_execution_time' => ['recommended' => 600, 'type' => 'Greater', 'container' => 'php', 'testCli' => true],
'max_input_time' => ['recommended' => 600, 'type' => 'Greater', 'container' => 'php', 'testCli' => true],
'default_socket_timeout' => ['recommended' => 600, 'type' => 'Greater', 'container' => 'php', 'testCli' => true],
'memory_limit' => ['recommended' => '1 GB', 'type' => 'GreaterMb', 'container' => 'php', 'testCli' => true],
'log_errors' => ['recommended' => 'On', 'type' => 'OnOff', 'container' => 'php', 'testCli' => true],
'file_uploads' => ['recommended' => 'On', 'type' => 'OnOff', 'container' => 'php', 'testCli' => true],
'short_open_tag' => ['recommended' => 'On', 'type' => 'OnOff', 'container' => 'php', 'testCli' => true],
'post_max_size' => ['recommended' => '50 MB', 'type' => 'GreaterMb', 'container' => 'php', 'testCli' => true],
'upload_max_filesize' => ['recommended' => '100 MB', 'type' => 'GreaterMb', 'container' => 'php', 'testCli' => true],
'max_input_vars' => ['recommended' => 10000, 'type' => 'Greater', 'container' => 'php', 'testCli' => true],
'zlib.output_compression' => ['recommended' => 'Off', 'type' => 'OnOff', 'container' => 'php', 'testCli' => true],
'session.auto_start' => ['recommended' => 'Off', 'type' => 'OnOff', 'container' => 'php', 'testCli' => true],
'session.gc_maxlifetime' => ['recommended' => 1440, 'type' => 'Greater', 'container' => 'php', 'testCli' => true],
'session.gc_divisor' => ['recommended' => 500, 'type' => 'Greater', 'container' => 'php', 'testCli' => true],
'session.gc_probability' => ['recommended' => 1, 'type' => 'Equal', 'container' => 'php', 'testCli' => true],
'suhosin.session.encrypt' => ['recommended' => 'Off', 'type' => 'Equal', 'container' => 'php', 'testCli' => true],
//Roundcube
'mbstring.func_overload' => ['recommended' => 0, 'type' => 'Equal', 'container' => 'php', 'testCli' => true],
//Roundcube
'pcre.backtrack_limit' => ['recommended' => 100000, 'type' => 'Greater', 'container' => 'php', 'testCli' => true],
//Roundcube
'date.timezone' => ['type' => 'TimeZone', 'container' => 'php', 'testCli' => true],
//Roundcube
'allow_url_fopen' => ['recommended' => 'On', 'type' => 'OnOff', 'container' => 'php', 'testCli' => true],
//Roundcube
'auto_detect_line_endings' => ['recommended' => 'On', 'type' => 'OnOff', 'container' => 'php', 'testCli' => true],
//CSVReader
// 'httpMethods' => ['recommended' => 'GET, POST, PUT, OPTIONS, PATCH, PROPFIND, REPORT, LOCK, DELETE, COPY, MOVE', 'type' => 'HttpMethods', 'container' => 'request', 'testCli' => true, 'label' => 'HTTP_METHODS'],
'request_order' => ['recommended' => 'GP', 'type' => 'Equal', 'container' => 'php', 'testCli' => true],
'variables_order' => ['recommended' => 'GPCS', 'type' => 'Equal', 'container' => 'php', 'testCli' => true],
'opcache.jit' => ['container' => 'php', 'testCli' => true],
'opcache.jit_buffer_size' => ['container' => 'php', 'testCli' => true],
'mysqli.allow_persistent' => ['container' => 'php', 'testCli' => true],
'mysqli.max_persistent' => ['container' => 'php', 'testCli' => true],
]
$testCli
public
static string
$testCli
= false
System URL.
$types
List all variables.
public
static array<string|int, string>
$types
= ['stability', 'security', 'libraries', 'database', 'performance', 'environment', 'writableFilesAndFolders', 'functionalVerification', 'headers', 'publicDirectoryAccess', 'pathVerification']
$urlsToCheck
public
static array<string|int, mixed>
$urlsToCheck
= ['root' => 'cron.php', 'js' => 'layouts/resources/Tools.js', 'css' => 'layouts/resources/fonts/fonts.css']
Urls to check in request.
$writableFilesAndFolders
Writable files and folders permissions map.
public
static array<string|int, mixed>
$writableFilesAndFolders
= ['cron.php' => ['type' => 'IsWritable', 'testCli' => true], 'app_data/cron.php' => ['type' => 'IsWritable', 'testCli' => true], 'app_data/registration.php' => ['type' => 'IsWritable', 'testCli' => true], 'app_data/moduleHierarchy.php' => ['type' => 'IsWritable', 'testCli' => true, 'mustExist' => true], 'app_data/shop.php' => ['type' => 'IsWritable', 'testCli' => true], 'app_data/icons.php' => ['type' => 'IsWritable', 'testCli' => true], 'app_data/LanguagesUpdater.json' => ['type' => 'IsWritable', 'testCli' => true], 'app_data/SystemUpdater.json' => ['type' => 'IsWritable', 'testCli' => true], 'app_data/libraries.json' => ['type' => 'IsWritable', 'testCli' => true], 'user_privileges/tabdata.php' => ['type' => 'IsWritable', 'testCli' => true, 'mustExist' => true], 'user_privileges/menu_0.php' => ['type' => 'IsWritable', 'testCli' => true], 'user_privileges/user_privileges_1.php' => ['type' => 'IsWritable', 'testCli' => true], 'cache/logs/system.log' => ['type' => 'IsWritable', 'testCli' => true], 'app_data/' => ['type' => 'IsWritable', 'testCli' => true, 'mustExist' => true], 'app_data/shop/' => ['type' => 'IsWritable', 'testCli' => true], 'cache/' => ['type' => 'IsWritable', 'testCli' => true, 'mustExist' => true], 'cache/addressBook/' => ['type' => 'IsWritable', 'testCli' => true], 'cache/images/' => ['type' => 'IsWritable', 'testCli' => true], 'cache/import/' => ['type' => 'IsWritable', 'testCli' => true], 'cache/mail/' => ['type' => 'IsWritable', 'testCli' => true], 'cache/pdf/' => ['type' => 'IsWritable', 'testCli' => true], 'cache/logs/' => ['type' => 'IsWritable', 'testCli' => true, 'mustExist' => true], 'cache/logs/cron/' => ['type' => 'IsWritable', 'testCli' => true], 'cache/session/' => ['type' => 'IsWritable', 'testCli' => true, 'mustExist' => true], 'cache/templates_c/' => ['type' => 'IsWritable', 'testCli' => true, 'mustExist' => true], 'cache/upload/' => ['type' => 'IsWritable', 'testCli' => true, 'mustExist' => true], 'cache/vtlib/' => ['type' => 'IsWritable', 'testCli' => true, 'mustExist' => true], 'cache/vtlib/HTML' => ['type' => 'IsWritable', 'testCli' => true, 'mustExist' => true], 'config/' => ['type' => 'IsWritable', 'testCli' => true, 'mustExist' => true], 'config/Components' => ['type' => 'IsWritable', 'testCli' => true, 'mustExist' => true], 'config/Modules' => ['type' => 'IsWritable', 'testCli' => true, 'mustExist' => true], 'user_privileges/' => ['type' => 'IsWritable', 'testCli' => true, 'mustExist' => true], 'cron/modules/' => ['type' => 'IsWritable', 'testCli' => true], 'languages/' => ['type' => 'IsWritable', 'testCli' => true, 'mustExist' => true], 'install/' => ['type' => 'IsWritable', 'testCli' => true], 'modules/' => ['type' => 'IsWritable', 'testCli' => true, 'mustExist' => true], 'storage/' => ['type' => 'IsWritable', 'testCli' => true, 'mustExist' => true], 'storage/Products/' => ['type' => 'IsWritable', 'testCli' => true], 'storage/Users/' => ['type' => 'IsWritable', 'testCli' => true], 'storage/Contacts/' => ['type' => 'IsWritable', 'testCli' => true], 'storage/OSSMailView/' => ['type' => 'IsWritable', 'testCli' => true], 'public_html/modules/OSSMail/' => ['type' => 'IsWritable', 'testCli' => true, 'mustExist' => true], 'public_html/libraries/' => ['type' => 'IsWritable', 'testCli' => true, 'mustExist' => true], 'public_html/layouts/resources/Logo/' => ['type' => 'IsWritable', 'testCli' => true, 'mustExist' => true]]
$crmUrl
private
static string
$crmUrl
System URL.
$db
Database variables.
private
static array<string|int, mixed>
$db
= []
$env
Environment variables.
private
static array<string|int, mixed>
$env
= []
$ext
Extensions.
private
static array<string|int, mixed>
$ext
= []
$php
Php variables.
private
static array<string|int, mixed>
$php
= []
$request
Request request.
private
static array<string|int, mixed>
$request
= []
Methods
get()
Get configuration values by type of map.
public
static get(string $type[, bool $onlyError = false ]) : mixed
Parameters
- $type : string
- $onlyError : bool = false
Return values
mixed —getAll()
Get all configuration values.
public
static getAll() : array<string|int, mixed>
Return values
array<string|int, mixed> —getAllErrors()
Get all configuration error values.
public
static getAllErrors([bool $cache = false ]) : array<string|int, mixed>
Parameters
- $cache : bool = false
Return values
array<string|int, mixed> —getByType()
Get configuration values by type.
public
static getByType(array<string|int, mixed> $types[, bool $initAll = false ]) : array<string|int, mixed>
Parameters
- $types : array<string|int, mixed>
- $initAll : bool = false
Return values
array<string|int, mixed> —getConfig()
Get environment variables.
public
static getConfig() : array<string|int, mixed>
Return values
array<string|int, mixed> —getCronVariables()
Get variable for cron.
public
static getCronVariables(string $type) : mixed
Parameters
- $type : string
Return values
mixed —getEnv()
Get environment variables.
public
static getEnv() : array<string|int, mixed>
Return values
array<string|int, mixed> —getErrors()
Get configuration error values.
public
static getErrors(string $type[, bool $returnMore = false ]) : array<string|int, mixed>
Parameters
- $type : string
- $returnMore : bool = false
Return values
array<string|int, mixed> —getNewestPhpVersion()
Get actual version of PHP.
public
static getNewestPhpVersion() : array<string|int, string>
Return values
array<string|int, string> —saveEnv()
Save environment variables.
public
static saveEnv() : void
Return values
void —validatePath()
Check open_basedir restrictions.
public
static validatePath(string $dir) : bool
Parameters
- $dir : string
Return values
bool —validateRegister()
Validate register.
public
static validateRegister(string $name, array<string|int, mixed> $row, string $sapi) : array<string|int, mixed>
Parameters
- $name : string
- $row : array<string|int, mixed>
- $sapi : string
Return values
array<string|int, mixed> —validateShopCache()
Validate shop cache.
public
static validateShopCache(string $name, array<string|int, mixed> $row, string $sapi) : array<string|int, mixed>
Parameters
- $name : string
- $row : array<string|int, mixed>
- $sapi : string
Return values
array<string|int, mixed> —validateWatchdog()
Validate watchdog.
public
static validateWatchdog(string $name, array<string|int, mixed> $row, string $sapi) : array<string|int, mixed>
Parameters
- $name : string
- $row : array<string|int, mixed>
- $sapi : string
Return values
array<string|int, mixed> —getRequest()
Get request request.
private
static getRequest() : array<string|int, mixed>
Return values
array<string|int, mixed> —init()
Initializing variables.
private
static init(string $type) : mixed
Parameters
- $type : string
Return values
mixed —parse()
Parser of configuration values.
private
static parse(string $type) : array<string|int, mixed>
Parameters
- $type : string
Return values
array<string|int, mixed> —parserAllExt()
Parser all extensions value.
private
static parserAllExt(string $name, array<string|int, mixed> $row) : array<string|int, mixed>
Parameters
- $name : string
- $row : array<string|int, mixed>
Return values
array<string|int, mixed> —parserHttpMethods()
Parser http methods value.
private
static parserHttpMethods(string $name, array<string|int, mixed> $row) : array<string|int, mixed>
Parameters
- $name : string
- $row : array<string|int, mixed>
Return values
array<string|int, mixed> —parserOnOff()
Parser on or off value.
private
static parserOnOff(string $name, array<string|int, mixed> $row) : string
Parameters
- $name : string
- $row : array<string|int, mixed>
Return values
string —validate()
Validating configuration values.
private
static validate(string $type) : mixed
Parameters
- $type : string
Return values
mixed —validateAllExt()
Validate exists url.
private
static validateAllExt(string $name, array<string|int, mixed> $row, string $sapi) : array<string|int, mixed>
Parameters
- $name : string
- $row : array<string|int, mixed>
- $sapi : string
Return values
array<string|int, mixed> —validateBranding()
Validate branding value.
private
static validateBranding(string $name, array<string|int, mixed> $row, string $sapi) : array<string|int, mixed>
Parameters
- $name : string
- $row : array<string|int, mixed>
- $sapi : string
Return values
array<string|int, mixed> —validateCookieSamesite()
Validate session.cookie_samesite.
private
static validateCookieSamesite(string $name, array<string|int, mixed> $row, string $sapi) : array<string|int, mixed>
Parameters
- $name : string
- $row : array<string|int, mixed>
- $sapi : string
Return values
array<string|int, mixed> —validateCookieSecure()
Validate session.cookie_secure.
private
static validateCookieSecure(string $name, array<string|int, mixed> $row, string $sapi) : array<string|int, mixed>
Parameters
- $name : string
- $row : array<string|int, mixed>
- $sapi : string
Return values
array<string|int, mixed> —validateCronEqual()
Validate equal value "cron == www".
private
static validateCronEqual(string $name, array<string|int, mixed> $row, string $sapi) : array<string|int, mixed>
Parameters
- $name : string
- $row : array<string|int, mixed>
- $sapi : string
Return values
array<string|int, mixed> —validateDbOpenFilesLimit()
Validate DB open_files_limit.
private
static validateDbOpenFilesLimit(string $name, array<string|int, mixed> $row, string $sapi) : array<string|int, mixed>
Parameters
- $name : string
- $row : array<string|int, mixed>
- $sapi : string
Return values
array<string|int, mixed> —validateDbTableDefinitionCache()
Validate number greater than another parameter.
private
static validateDbTableDefinitionCache(string $name, array<string|int, mixed> $row, string $sapi) : array<string|int, mixed>
Parameters
- $name : string
- $row : array<string|int, mixed>
- $sapi : string
Return values
array<string|int, mixed> —validateEqual()
Validate equal value "recommended == current".
private
static validateEqual(string $name, array<string|int, mixed> $row, string $sapi) : array<string|int, mixed>
Parameters
- $name : string
- $row : array<string|int, mixed>
- $sapi : string
Return values
array<string|int, mixed> —validateErrorLog()
Validate check error_log.
private
static validateErrorLog(string $name, array<string|int, mixed> $row, string $sapi) : array<string|int, mixed>
Parameters
- $name : string
- $row : array<string|int, mixed>
- $sapi : string
Return values
array<string|int, mixed> —validateErrorReporting()
Validate error reporting.
private
static validateErrorReporting(string $name, array<string|int, mixed> $row, string $sapi) : array<string|int, mixed>
Parameters
- $name : string
- $row : array<string|int, mixed>
- $sapi : string
Return values
array<string|int, mixed> —validateExistsUrl()
Validate exists url.
private
static validateExistsUrl(string $name, array<string|int, mixed> $row, string $sapi) : array<string|int, mixed>
Parameters
- $name : string
- $row : array<string|int, mixed>
- $sapi : string
Return values
array<string|int, mixed> —validateExtExist()
Validate extension loaded.
private
static validateExtExist(string $name, array<string|int, mixed> $row, string $sapi) : array<string|int, mixed>
Parameters
- $name : string
- $row : array<string|int, mixed>
- $sapi : string
Return values
array<string|int, mixed> —validateExtNotExist()
Validate extension loaded.
private
static validateExtNotExist(string $name, array<string|int, mixed> $row, string $sapi) : array<string|int, mixed>
Parameters
- $name : string
- $row : array<string|int, mixed>
- $sapi : string
Return values
array<string|int, mixed> —validateFnExist()
Validate function exist.
private
static validateFnExist(string $name, array<string|int, mixed> $row, string $sapi) : array<string|int, mixed>
Parameters
- $name : string
- $row : array<string|int, mixed>
- $sapi : string
Return values
array<string|int, mixed> —validateGreater()
Validate number greater than recommended.
private
static validateGreater(string $name, array<string|int, mixed> $row, string $sapi) : array<string|int, mixed>
Parameters
- $name : string
- $row : array<string|int, mixed>
- $sapi : string
Return values
array<string|int, mixed> —validateGreaterMb()
Validate number in bytes greater than recommended.
private
static validateGreaterMb(string $name, array<string|int, mixed> $row, string $sapi) : array<string|int, mixed>
Parameters
- $name : string
- $row : array<string|int, mixed>
- $sapi : string
Return values
array<string|int, mixed> —validateHeader()
Validate header.
private
static validateHeader(string $name, array<string|int, mixed> $row, string $sapi) : array<string|int, mixed>
Parameters
- $name : string
- $row : array<string|int, mixed>
- $sapi : string
Return values
array<string|int, mixed> —validateHeaderCsp()
Validate header CSP.
private
static validateHeaderCsp(string $name, array<string|int, mixed> $row, string $sapi) : array<string|int, mixed>
Parameters
- $name : string
- $row : array<string|int, mixed>
- $sapi : string
Return values
array<string|int, mixed> —validateHeaderServer()
Validate header CSP.
private
static validateHeaderServer(string $name, array<string|int, mixed> $row, string $sapi) : array<string|int, mixed>
Parameters
- $name : string
- $row : array<string|int, mixed>
- $sapi : string
Return values
array<string|int, mixed> —validateHttpMethods()
Validate http methods.
private
static validateHttpMethods(string $name, array<string|int, mixed> $row, string $sapi) : array<string|int, mixed>
Parameters
- $name : string
- $row : array<string|int, mixed>
- $sapi : string
Return values
array<string|int, mixed> —validateIn()
Validate in array.
private
static validateIn(string $name, array<string|int, mixed> $row, string $sapi) : array<string|int, mixed>
Parameters
- $name : string
- $row : array<string|int, mixed>
- $sapi : string
Return values
array<string|int, mixed> —validateIsWritable()
Validate realpath cache size.
private
static validateIsWritable(string $name, array<string|int, mixed> $row, string $sapi) : array<string|int, mixed>
Parameters
- $name : string
- $row : array<string|int, mixed>
- $sapi : string
Return values
array<string|int, mixed> —validateNotEmpty()
Validate check if value is empty.
private
static validateNotEmpty(string $name, array<string|int, mixed> $row, string $sapi) : array<string|int, mixed>
Parameters
- $name : string
- $row : array<string|int, mixed>
- $sapi : string
Return values
array<string|int, mixed> —validateNotExistsUrl()
Validate not exists url.
private
static validateNotExistsUrl(string $name, array<string|int, mixed> $row, string $sapi) : array<string|int, mixed>
Parameters
- $name : string
- $row : array<string|int, mixed>
- $sapi : string
Return values
array<string|int, mixed> —validateNotIn()
Validate not in array.
private
static validateNotIn(string $name, array<string|int, mixed> $row, string $sapi) : array<string|int, mixed>
Parameters
- $name : string
- $row : array<string|int, mixed>
- $sapi : string
Return values
array<string|int, mixed> —validateOneOf()
Validate one of array.
private
static validateOneOf(string $name, array<string|int, mixed> $row, string $sapi) : array<string|int, mixed>
Parameters
- $name : string
- $row : array<string|int, mixed>
- $sapi : string
Return values
array<string|int, mixed> —validateOnOff()
Validate on or off value.
private
static validateOnOff(string $name, array<string|int, mixed> $row, string $sapi) : array<string|int, mixed>
Parameters
- $name : string
- $row : array<string|int, mixed>
- $sapi : string
Return values
array<string|int, mixed> —validateOnOffInt()
Validate on, off and int values.
private
static validateOnOffInt(string $name, array<string|int, mixed> $row, string $sapi) : array<string|int, mixed>
Parameters
- $name : string
- $row : array<string|int, mixed>
- $sapi : string
Return values
array<string|int, mixed> —validateOpenBasedir()
Validate open_basedir.
private
static validateOpenBasedir(string $name, array<string|int, mixed> $row, string $sapi) : array<string|int, mixed>
Parameters
- $name : string
- $row : array<string|int, mixed>
- $sapi : string
Return values
array<string|int, mixed> —validateSessionRegenerate()
Validate session_regenerate_id.
private
static validateSessionRegenerate(string $name, array<string|int, mixed> $row, string $sapi) : array<string|int, mixed>
Parameters
- $name : string
- $row : array<string|int, mixed>
- $sapi : string
Return values
array<string|int, mixed> —validateShowBytes()
Display number in bytes.
private
static validateShowBytes(string $name, array<string|int, mixed> $row, string $sapi) : array<string|int, mixed>
Parameters
- $name : string
- $row : array<string|int, mixed>
- $sapi : string
Return values
array<string|int, mixed> —validateSpace()
Validate disc space value.
private
static validateSpace(string $name, array<string|int, mixed> $row, string $sapi) : array<string|int, mixed>
Parameters
- $name : string
- $row : array<string|int, mixed>
- $sapi : string
Return values
array<string|int, mixed> —validateTimeZone()
Validate date timezone.
private
static validateTimeZone(string $name, array<string|int, mixed> $row, string $sapi) : array<string|int, mixed>
Parameters
- $name : string
- $row : array<string|int, mixed>
- $sapi : string
Return values
array<string|int, mixed> —validateVersion()
Validate php version.
private
static validateVersion(string $name, array<string|int, mixed> $row, string $sapi) : mixed
Parameters
- $name : string
- $row : array<string|int, mixed>
- $sapi : string
Return values
mixed —validateVersionDb()
Validate database version.
private
static validateVersionDb(string $name, array<string|int, mixed> $row, string $sapi) : bool
Parameters
- $name : string
- $row : array<string|int, mixed>
- $sapi : string
Return values
bool —validateWebservice()
Validate webservice.
private
static validateWebservice(string $name, array<string|int, mixed> $row, string $sapi) : array<string|int, mixed>
Parameters
- $name : string
- $row : array<string|int, mixed>
- $sapi : string