Source
'error' => _('PHP gettext extension missing (PHP configuration parameter --with-gettext). Translations will not be available.')
<?php
/*
** Zabbix
** Copyright (C) 2001-2023 Zabbix SIA
**
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU General Public License as published by
** the Free Software Foundation; either version 2 of the License, or
** (at your option) any later version.
**
** This program is distributed in the hope that it will be useful,
** but WITHOUT ANY WARRANTY; without even the implied warranty of
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
** GNU General Public License for more details.
**
** You should have received a copy of the GNU General Public License
** along with this program; if not, write to the Free Software
** Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
**/
/**
* Class to operate with frontend setup information.
* Currently only setup requirements are checked.
*/
class CFrontendSetup {
const MIN_PHP_VERSION = '7.4.0';
const MIN_PHP_MEMORY_LIMIT = '134217728'; // 128 * ZBX_MEBIBYTE;
const MIN_PHP_POST_MAX_SIZE = '16777216'; // 16 * ZBX_MEBIBYTE;
const MIN_PHP_UPLOAD_MAX_FILESIZE = '2097152'; // 2 * ZBX_MEBIBYTE;
const MIN_PHP_MAX_EXECUTION_TIME = 300;
const MIN_PHP_MAX_INPUT_TIME = 300;
const MIN_PHP_GD_VERSION = '2.0';
const MIN_PHP_LIBXML_VERSION = '2.6.15';
const REQUIRED_PHP_ARG_SEPARATOR_OUTPUT = '&';
/**
* Check OK, setup can continue.
*/
const CHECK_OK = 1;
/**
* Check failed, but setup can still continue. A warning will be displayed.
*/
const CHECK_WARNING = 2;
/**
* Check failed, setup cannot continue. An error will be displayed.
*/
const CHECK_FATAL = 3;
/**
* Perform all requirements checks.
*
* @return array
*/
public function checkRequirements() {
$result = [];
$result[] = $this->checkPhpVersion();
$result[] = $this->checkPhpMemoryLimit();
$result[] = $this->checkPhpPostMaxSize();