Skip to content

Commit e529d30

Browse files
committed
Renamed struct members due to changes in libmongoc
1 parent 74ed943 commit e529d30

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

php_phongo.c

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -649,7 +649,7 @@ int phongo_execute_command(mongoc_client_t *client, const char *db, const bson_t
649649
cursor->limit = 0;
650650

651651
cid = cursor->iface_data;
652-
cid->has_cursor = true;
652+
cid->in_batch = true;
653653

654654
while (bson_iter_next(&child)) {
655655
if (BSON_ITER_IS_KEY(&child, "id")) {
@@ -660,8 +660,8 @@ int phongo_execute_command(mongoc_client_t *client, const char *db, const bson_t
660660
ns = bson_iter_utf8(&child, &cursor->nslen);
661661
bson_strncpy(cursor->ns, ns, sizeof cursor->ns);
662662
} else if (BSON_ITER_IS_KEY(&child, "firstBatch")) {
663-
if (BSON_ITER_HOLDS_ARRAY(&child) && bson_iter_recurse(&child, &cid->first_batch_iter)) {
664-
cid->in_first_batch = true;
663+
if (BSON_ITER_HOLDS_ARRAY(&child) && bson_iter_recurse(&child, &cid->batch_iter)) {
664+
cid->in_reader = true;
665665
}
666666
}
667667
}
@@ -1357,10 +1357,8 @@ void php_phongo_cursor_to_zval(zval *retval, php_phongo_cursor_t *cursor) /* {{{
13571357
_ADD_BOOL(zcursor, is_command);
13581358
_ADD_BOOL(zcursor, sent);
13591359
_ADD_BOOL(zcursor, done);
1360-
_ADD_BOOL(zcursor, failed);
13611360
_ADD_BOOL(zcursor, end_of_event);
13621361
_ADD_BOOL(zcursor, in_exhaust);
1363-
_ADD_BOOL(zcursor, redir_primary);
13641362
_ADD_BOOL(zcursor, has_fields);
13651363
#undef _ADD_BOOL
13661364

0 commit comments

Comments
 (0)