29 function __construct($phpVersionMin = PHP_REQUIRED_VERSION, $phpVersionMax =
null, $phpExtensions = array(), $externalPrograms = array()) {
30 $this->_phpVersionMin = $phpVersionMin;
31 $this->_phpVersionMax = $phpVersionMax;
32 $this->_phpExtensions = $phpExtensions;
33 $this->_externalPrograms = $externalPrograms;
82 if (!is_null($this->_phpVersionMin) && !
checkPhpVersion($this->_phpVersionMin))
return false;
83 if (!is_null($this->_phpVersionMax) && version_compare(PHP_VERSION, $this->_phpVersionMax) === 1)
return false;
86 foreach($this->_phpExtensions as $requiredExtension) {
87 if(!extension_loaded($requiredExtension))
return false;
91 foreach($this->_externalPrograms as $requiredProgram) {
93 if (!file_exists($externalProgram))
return false;
94 if (function_exists(
'is_executable')) {
95 if (!is_executable($externalProgram))
return false;