We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4a8a55a + b8b8b44 commit 46e4d87Copy full SHA for 46e4d87
php_phongo_structs.h
@@ -58,7 +58,7 @@ typedef struct {
58
uint32_t server_id;
59
bool advanced;
60
php_phongo_bson_state visitor_data;
61
- int got_iterator;
+ bool got_iterator;
62
long current;
63
char* database;
64
char* collection;
src/MongoDB/Cursor.c
@@ -193,7 +193,7 @@ static zend_object_iterator* php_phongo_cursor_get_iterator(zend_class_entry* ce
193
return NULL;
194
}
195
196
- cursor->got_iterator = 1;
+ cursor->got_iterator = true;
197
198
cursor_it = ecalloc(1, sizeof(php_phongo_cursor_iterator));
199
#if PHP_VERSION_ID >= 70000
0 commit comments