evseevnn-zz / php-cassandra-binary

PHP library for Cassandra database via a binary protocol.
http://evseevnn.github.io/php-cassandra-binary/
MIT License
69 stars 33 forks source link

fix readInt() for negative values #34

Closed locked closed 10 years ago

locked commented 10 years ago

use strrev() then unpack('l') instead of unpack('N'), which is for unsigned int

LarsFronius commented 10 years ago

@locked your fix does not work inside a collection (map,set,list) - can you work on this?

LarsFronius commented 10 years ago

Nevermind, took care of it already.