• Модуль: security
  • Путь к файлу: ~/bitrix/modules/security/classes/general/tests/taint_checking.php
  • Класс: CSecurityTaintCheckingTest
  • Вызов: CSecurityTaintCheckingTest::checkRequirements
public function checkRequirements($params = array())
{
	if(extension_loaded('tokenizer') !== true)
		throw new CSecurityRequirementsException(GetMessage("SECURITY_SITE_CHECKER_TAINT_TOKENIZER_NOT_FOUND"));
	$maxExecutionTime = ini_get("max_execution_time");
	if($maxExecutionTime > 0 && $maxExecutionTime <= 20)
		throw new CSecurityRequirementsException(GetMessage("SECURITY_SITE_CHECKER_TAINT_EXECUTION_TIME"));
	$memoryLimit = CUtil::Unformat(ini_get("memory_limit"));
	if($memoryLimit > 0 && $memoryLimit <= 250 * 1024 * 1024)
		throw new CSecurityRequirementsException(GetMessage("SECURITY_SITE_CHECKER_TAINT_MEMORY_LIMIT"));
	return true;
}