• Модуль: translate
  • Путь к файлу: ~/bitrix/modules/translate/lib/componentbase.php
  • Класс: BitrixTranslateComponentBase
  • Вызов: ComponentBase::checkMysqlConfig
protected function checkMysqlConfig(): void
{
	$majorVersion = (int)mb_substr(BitrixMainApplication::getConnection()->getVersion()[0], 0, 1);

	if ($majorVersion >= 8)
	{
		$conf = MainApplication::getConnection()->query("SHOW VARIABLES LIKE 'regexp_time_limit'")->fetch();
		if ($conf['Variable_name'] == 'regexp_time_limit')
		{
			if ((int)$conf['Value'] <= 0)
			{
				$this->addWarning(new Error(Loc::getMessage('TRANSLATE_MYSQL_CONFIG_ERROR_REGEXP_TIME_LIMIT'), self::STATUS_ERROR));
			}
		}
	}
}