You are here

public function Executable::version in ClamAV 2.x

Same name and namespace in other branches
  1. 8 src/Scanner/Executable.php \Drupal\clamav\Scanner\Executable::version()

The version of the ClamAV service.

Return value

string The version number provided by ClamAV.

Overrides ScannerInterface::version

File

src/Scanner/Executable.php, line 79

Class

Executable

Namespace

Drupal\clamav\Scanner

Code

public function version() {
  if (file_exists($this->_executable_path)) {
    return exec(escapeshellcmd($this->_executable_path) . ' -V');
  }
  else {
    return NULL;
  }
}