• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/location/db/mysql/helper.php
  • Класс: BitrixSaleLocationDBHelper
  • Вызов: Helper::getMaxTransferUnit
static function getMaxTransferUnit()
{
	$dbConnection = MainHttpApplication::getConnection();

	$res = $dbConnection->query("SHOW VARIABLES LIKE 'max_allowed_packet'")->fetch();
	if(!($res['Variable_name'] == 'max_allowed_packet' && $mtu = intval($res['Value'])))
		return 0;

	return $mtu;
}