New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reading while at end of stream error #27
Comments
It's happening to me as well. Please help. Thanks. It happens when you have a column like this: 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 |
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: Like aslubsky, did a temp fix in my fork 344ae09 |
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
The text was updated successfully, but these errors were encountered: