Open aslubsky opened 10 years ago
It's happening to me as well. Please help. Thanks.
It happens when you have a column like this:
tags list
But you never set a value to such column (of list type)
Hi I am getting this too.
I have columns that do not always have data and in these circumstances I get this error.
Would love to see a fix for this soon ish otherwise not sure I can release this into production as it casuses no end of notice errors for me.
Thanks
I fixed it in my fork https://github.com/aslubsky/php-cassandra-binary Fix is not very good (dirty try cath) but work and may be used as temporary solution
ok, I'll try to fix it tomorrow during the day
Hi did get around to looking at this?
Can confirm this occurs when reading NULL'ed MAP<><> column types as: readShort() is trying to get a count from an empty $this->data string (len = 0).
Like aslubsky, did a temp fix in my fork 344ae09d1c856717337f4c9491bf2e46f77d1d88
There is a general problem with NULL values. I used the development branch and added all the ($isCollectionElement = false) parameters in DataStream.php from the master branch. That fixed the Problem with the maps. The most important change was adding this:
public function readByType(array $type, $isCollectionElement = false) {
if (strlen($this->data) <= 0){
return null;
}
Hi
in cqlsh - OK by php-cassandra-binary - "Reading while at end of stream"
Thanks