• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/classes/general/zip.php
  • Класс: CZip
  • Вызов: CZip::_openFile
private function _openFile($mode)
{
	$res = 1;

	if ($this->zipfile != 0)
	{
		$this->_errorLog("ERR_OPEN", str_replace("#FILE_NAME#", removeDocRoot($this->zipname), GetMessage("MAIN_ZIP_ERR_READ_OPEN")));
		return $this->arErrors;
	}

	$this->_checkDirPath($this->zipname);

	if (($this->zipfile = @fopen($this->io->GetPhysicalName($this->zipname), $mode)) == 0)
	{
		$this->_errorLog("ERR_READ_MODE", str_replace(["#FILE_NAME#", "#MODE#"], [removeDocRoot($this->zipname), $mode], GetMessage("MAIN_ZIP_ERR_READ_MODE")));
		return $this->arErrors;
	}

	return $res;
}