Archive_Tar::_openWrite

public function Archive_Tar::_openWrite

public Archive_Tar::_openWrite()

Return value

bool

File

modules/system/system.tar.inc, line 815

Class

Archive_Tar

Code

public function _openWrite() 
 {
  if ($this->_compress_type == 'gz' && function_exists('gzopen')) {
    $this->_file = @gzopen($this->_tarname, "wb9");
  }
  else {
    if ($this->_compress_type == 'bz2' && function_exists('bzopen')) {
      $this->_file = @bzopen($this->_tarname, "w");
    }
    else {
      if ($this->_compress_type == 'lzma2' && function_