@@ -83,6 +83,7 @@ PHP_METHOD(Cursor, getId)
83
83
}
84
84
zend_restore_error_handling (& error_handling TSRMLS_CC );
85
85
86
+ php_phongo_cursor_id_new_from_id (return_value , mongoc_cursor_get_id (intern -> cursor ) TSRMLS_CC );
86
87
}
87
88
/* }}} */
88
89
/* {{{ proto MongoDB\Server Cursor::getServer()
@@ -147,25 +148,6 @@ PHP_METHOD(Cursor, kill)
147
148
//mongoc_client_kill_cursor(php_phongo_client_from_hint(hint), mongoc_cursor_get_id(intern->cursor));
148
149
}
149
150
/* }}} */
150
- /* {{{ proto boolean Cursor::getCursorId()
151
- Gets a batch size for the cursor */
152
- PHP_METHOD (Cursor , getCursorId )
153
- {
154
- php_phongo_cursor_t * intern ;
155
- zend_error_handling error_handling ;
156
-
157
-
158
- zend_replace_error_handling (EH_THROW , phongo_exception_from_phongo_domain (PHONGO_ERROR_INVALID_ARGUMENT ), & error_handling TSRMLS_CC );
159
- intern = (php_phongo_cursor_t * )zend_object_store_get_object (getThis () TSRMLS_CC );
160
-
161
- if (zend_parse_parameters_none () == FAILURE ) {
162
- zend_restore_error_handling (& error_handling TSRMLS_CC );
163
- return ;
164
- }
165
- zend_restore_error_handling (& error_handling TSRMLS_CC );
166
- php_phongo_cursor_id_new_from_id (return_value , mongoc_cursor_get_id (intern -> cursor ) TSRMLS_CC );
167
- }
168
- /* }}} */
169
151
/* {{{ proto boolean Cursor::setBatchSize(integer $batchSize)
170
152
Sets a batch size for the cursor */
171
153
PHP_METHOD (Cursor , setBatchSize )
@@ -335,9 +317,6 @@ ZEND_END_ARG_INFO();
335
317
ZEND_BEGIN_ARG_INFO_EX (ai_Cursor_kill , 0 , 0 , 0 )
336
318
ZEND_END_ARG_INFO ();
337
319
338
- ZEND_BEGIN_ARG_INFO_EX (ai_Cursor_getCursorId , 0 , 0 , 0 )
339
- ZEND_END_ARG_INFO ();
340
-
341
320
ZEND_BEGIN_ARG_INFO_EX (ai_Cursor_getBatchSize , 0 , 0 , 0 )
342
321
ZEND_END_ARG_INFO ();
343
322
@@ -367,7 +346,6 @@ static zend_function_entry php_phongo_cursor_me[] = {
367
346
PHP_ME (Cursor , getServer , ai_Cursor_getServer , ZEND_ACC_PUBLIC )
368
347
PHP_ME (Cursor , isDead , ai_Cursor_isDead , ZEND_ACC_PUBLIC )
369
348
PHP_ME (Cursor , kill , ai_Cursor_kill , ZEND_ACC_PUBLIC )
370
- PHP_ME (Cursor , getCursorId , ai_Cursor_getCursorId , ZEND_ACC_PUBLIC )
371
349
PHP_ME (Cursor , getBatchSize , ai_Cursor_getBatchSize , ZEND_ACC_PUBLIC )
372
350
PHP_ME (Cursor , setBatchSize , ai_Cursor_setBatchSize , ZEND_ACC_PUBLIC )
373
351
PHP_ME (Cursor , current , ai_Cursor_current , ZEND_ACC_PUBLIC )
0 commit comments