Comments (3)
This patch seems to fix the problem but I haven't done extensive testing.
--- a/util/phpcassa/columnfamily.php
+++ b/util/phpcassa/columnfamily.php
@@ -1225,21 +1225,28 @@ class ColumnFamilyIterator implements Iterator {
if (count(current($this->current_buffer)) == 0)
{
# this is an empty row, skip it
-
$key = key($this->current_buffer);
-
$this->next();
-
while (count(current($this->current_buffer)) == 0) {
-
$this->next_start_key = key($this->current_buffer);
-
next($this->current_buffer);
-
$key = key($this->current_buffer);
-
if ( !isset($key) ) {
-
$beyond_last_row = true;
-
break;
-
}
-
}
-
}
-
else {
-
$key = key($this->current_buffer);
-
$beyond_last_row = !isset($key); }
-
else # count > 0
-
if (!$beyond_last_row) {
-
$key = key($this->current_buffer);
- $beyond_last_row = !isset($key);
-
if (!$beyond_last_row)
-
{
-
$this->rows_seen++;
-
if ($this->rows_seen > $this->row_count) {
-
$this->is_valid = false;
-
return;
-
}
-
$this->rows_seen++;
-
if ($this->rows_seen > $this->row_count) {
-
$this->is_valid = false;
-
return; } } }
from phpcassa.
Would you mind opening a pull request for this? You can find instructions here: http://help.github.com/send-pull-requests/
This is definitely a bug, and I appreciate you taking the time to come up with a patch. Thanks!
from phpcassa.
done, pull request sent
from phpcassa.
Related Issues (20)
- v1 UUID incorrect HOT 3
- Discard or clear mutator
- UUID type casting poisons dependent software HOT 10
- Need to support ListType or CollectionTypes HOT 5
- Problem with tag names in composer HOT 3
- Upgrade travis.yml for php5.5 and thrift_extension HOT 4
- LongType::unpack() throws warning HOT 1
- ADD Checkinstall or creation of OS-specific source packages for Thrift php extension HOT 5
- Analog of SQL "WHERE column IN (set)" for indexed columns ? HOT 1
- Cassandra 2.0 is out, everything is broken HOT 9
- Get Row columns have extra character. HOT 3
- Keyspace Read Error HOT 9
- Support for Cassandra v2+ HOT 28
- IndexesColumnFamilyIterator::get_buffer() returns duplicated rows HOT 2
- error occured while building the extension HOT 8
- debian package python-sphinx depends HOT 1
- use c extension HOT 1
- Can we have a new tagged release? HOT 1
- Uncaught exception 'cassandra\InvalidRequestException' in /var/www/html/phpcassa-master/lib/cassandra/Cassandra.php:1810
- PHP 5.3 vs deprecated
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from phpcassa.