OrientDB/OrientDB.php
public function setProtocolVersion($version)
    {
        $this->protocolVersion = $version;
        if ($this->protocolVersion < $this->clientVersion) {
            throw new OrientDBException('Binary protocol is uncompatible with the Server connected: clientVersion=' . $this->clientVersion . ', serverVersion=' . $this->protocolVersion);
        }
    }
public function setProtocolVersion($version)
    {
        $this->protocolVersion = $version;
        if ($this->protocolVersion < $this->clientVersion) {
            throw new OrientDBException('Binary protocol is uncompatible with the Server connected: clientVersion=' . $this->clientVersion . ', serverVersion=' . $this->protocolVersion);
        }
    }
Check if current client protocol version matches server version
@param int $version Server version
@throws OrientDBException