Ostico / PhpOrient

PhpOrient - Official Php driver based on the binary protocol of OrientDB.
Other
68 stars 37 forks source link

Error after update Orientdb #27

Closed luclanet closed 9 years ago

luclanet commented 9 years ago

PHP Fatal error: Uncaught exception 'PhpOrient\Exceptions\PhpOrientWrongProtocolVersionException' with message 'Protocol version 30 is not supported.'

luclanet commented 9 years ago

If you remove #91 to #93 on PhpOrient/Protocols/Binary/OrientSocket.php

it works perfectly.

if( $protocol > $this->protocolVersion ){ throw new PhpOrientWrongProtocolVersionException('Protocol version ' . $protocol . ' is not supported.'); }

Ostico commented 9 years ago

Hi @luclanet , PhpOrient only supports the OrientDb stable releases.

If you remove/comment the lines you suggested i can not ensure you the right behaviour because such protocol version is not tested.

What OrientDb version you are using?

luclanet commented 9 years ago

orientdb-community-2.1-rc3

Ostico commented 9 years ago

You can use the last stable 2.0.10 version and all the preeceding versions. I suggest the version 2.0.10 because of the last security patch.