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.
1 parent 659e9f9 commit a4b6954Copy full SHA for a4b6954
src/MongoDB/Cursor.c
@@ -27,6 +27,7 @@
27
/* External libs */
28
#include <bson.h>
29
#include <mongoc.h>
30
+#include <mongoc-cursor-private.h>
31
32
/* PHP Core stuff */
33
#include <php.h>
@@ -144,8 +145,7 @@ PHP_METHOD(Cursor, kill)
144
145
zend_restore_error_handling(&error_handling TSRMLS_CC);
146
147
hint = mongoc_cursor_get_hint(intern->cursor);
- /* FIXME: Resolve a hint to a client */
148
- //mongoc_client_kill_cursor(php_phongo_client_from_hint(hint), mongoc_cursor_get_id(intern->cursor));
+ mongoc_client_kill_cursor(intern->cursor->client, mongoc_cursor_get_id(intern->cursor));
149
}
150
/* }}} */
151
/* {{{ proto boolean Cursor::setBatchSize(integer $batchSize)
0 commit comments