private function checkVersion()
{
if (!$this->options['checkVersion']) {
$this->enabled = true;
return true;
}
if (!isset($_SERVER['HTTP_X_FIRELOGGER'])) {
$this->enabled = false;
return false;
}
$this->clientVersion = $_SERVER['HTTP_X_FIRELOGGER'];
if ($this->clientVersion != $this->recommendedClientVersion) {
error_log('FireLogger for PHP (v' . $this->serverVersion . ') works best with FireLogger extension of version ' . $this->recommendedClientVersion . '. You are currently using extension v' . $this->clientVersion . '. Please install matching versions from http://firelogger.binaryage.com/ and ' . 'https://github.com/phalcon/incubator/tree/master/Library/Phalcon/Logger');
$this->enabled = false;
return false;
}
$this->enabled = true;
return true;
}