• Модуль: iblock
  • Путь к файлу: ~/bitrix/modules/iblock/classes/general/cml2.php
  • Класс: CIBlockCMLImport
  • Вызов: CIBlockCMLImport::Unserialize
function Unserialize($string)
{
	if(defined("BX_UTF"))
	{
		//                                 1      2   3
		$decoded_string = preg_replace_callback('/(s:d+:")(.*?)(";)/s', array($this, "__unserialize_callback"), $string);
	}
	else
	{
		$decoded_string = $string;
	}
	return unserialize($decoded_string, ['allowed_classes' => false]);
}