function _clamav_get_version_via_exec in ClamAV 6
Same name and namespace in other branches
- 7 clamav.inc \_clamav_get_version_via_exec()
Get version information from a clamav executable.
Parameters
String $executable_path:
Return value
String
1 call to _clamav_get_version_via_exec()
- clamav_get_version in ./
clamav.inc - Get the version information for clamav.
File
- ./
clamav.inc, line 221 - API and helper functions for the ClamAV module.
Code
function _clamav_get_version_via_exec($executable_path) {
return exec(escapeshellcmd($executable_path) . ' -V');
}