/** * Checks if PHP version is high enough to run Mibew. * * @return boolean True if PHP version is suitable and false otherwise. */ protected function checkPhpVersion() { $current_version = $this->getPhpVersionId(); if ($current_version < self::MIN_PHP_VERSION) { $this->errors[] = getlocal("PHP version is {0}, but Mibew works with {1} and later versions.", array(Utils::formatVersionId($current_version), Utils::formatVersionId(self::MIN_PHP_VERSION))); return false; } return true; }