/** * Constructor. * * @param string $svn_exe Absolute path to the "svn.exe" binary. * @throws IF_SVNException */ public function __construct($svn_exe) { parent::__construct(); $this->trust_server_cert = true; $this->non_interactive = true; $this->svnExe = $svn_exe; // if (!file_exists($svn_exe)) // throw new IF_SVNException('Path to "svn.exe" does not exist: '.$this->svnExe); // if (!is_executable($svn_exe)) // throw new IF_SVNException('Permission denied! Can not execute "svn" executable: '.$this->svnExe); }
/** * Constructor. * * @param string $svn_admin_binary Absolute path to "svnadmin" executable. * @throws IF_SVNException */ public function __construct($svn_admin_binary) { parent::__construct(); $this->trust_server_cert = false; $this->non_interactive = false; $this->m_svnadmin = $svn_admin_binary; // if (!file_exists($svn_admin_binary)) // throw new IF_SVNException('Path to "svnadmin" binary does not exist: '.$this->m_svnadmin); // if (!is_executable($svn_admin_binary)) // throw new IF_SVNException('Permission denied! Can not execute "svnadmin" executable: '.$this->m_svnadmin); }