@@ -316,7 +316,7 @@ static PHP_METHOD(Manager, executeReadCommand)
316
316
DECLARE_RETURN_VALUE_USED
317
317
SUPPRESS_UNUSED_WARNING (return_value_ptr )
318
318
319
- if (zend_parse_parameters (ZEND_NUM_ARGS () TSRMLS_CC , "sO |z !", & db , & db_len , & command , php_phongo_command_ce , & options ) == FAILURE ) {
319
+ if (zend_parse_parameters (ZEND_NUM_ARGS () TSRMLS_CC , "sO |a !", & db , & db_len , & command , php_phongo_command_ce , & options ) == FAILURE ) {
320
320
return ;
321
321
}
322
322
@@ -337,7 +337,7 @@ static PHP_METHOD(Manager, executeWriteCommand)
337
337
DECLARE_RETURN_VALUE_USED
338
338
SUPPRESS_UNUSED_WARNING (return_value_ptr )
339
339
340
- if (zend_parse_parameters (ZEND_NUM_ARGS () TSRMLS_CC , "sO |z !", & db , & db_len , & command , php_phongo_command_ce , & options ) == FAILURE ) {
340
+ if (zend_parse_parameters (ZEND_NUM_ARGS () TSRMLS_CC , "sO |a !", & db , & db_len , & command , php_phongo_command_ce , & options ) == FAILURE ) {
341
341
return ;
342
342
}
343
343
@@ -358,7 +358,7 @@ static PHP_METHOD(Manager, executeReadWriteCommand)
358
358
DECLARE_RETURN_VALUE_USED
359
359
SUPPRESS_UNUSED_WARNING (return_value_ptr )
360
360
361
- if (zend_parse_parameters (ZEND_NUM_ARGS () TSRMLS_CC , "sO |z !", & db , & db_len , & command , php_phongo_command_ce , & options ) == FAILURE ) {
361
+ if (zend_parse_parameters (ZEND_NUM_ARGS () TSRMLS_CC , "sO |a !", & db , & db_len , & command , php_phongo_command_ce , & options ) == FAILURE ) {
362
362
return ;
363
363
}
364
364
@@ -551,6 +551,12 @@ ZEND_BEGIN_ARG_INFO_EX(ai_Manager_executeCommand, 0, 0, 2)
551
551
ZEND_ARG_INFO (0 , options )
552
552
ZEND_END_ARG_INFO ()
553
553
554
+ ZEND_BEGIN_ARG_INFO_EX (ai_Manager_executeRWCommand , 0 , 0 , 2 )
555
+ ZEND_ARG_INFO (0 , db )
556
+ ZEND_ARG_OBJ_INFO (0 , command , MongoDB \\Driver \\Command , 0 )
557
+ ZEND_ARG_ARRAY_INFO (0 , options , 0 )
558
+ ZEND_END_ARG_INFO ()
559
+
554
560
ZEND_BEGIN_ARG_INFO_EX (ai_Manager_executeQuery , 0 , 0 , 2 )
555
561
ZEND_ARG_INFO (0 , namespace )
556
562
ZEND_ARG_OBJ_INFO (0 , zquery , MongoDB \\Driver \\Query , 0 )
@@ -573,8 +579,8 @@ ZEND_END_ARG_INFO()
573
579
static zend_function_entry php_phongo_manager_me [] = {
574
580
PHP_ME (Manager , __construct , ai_Manager___construct , ZEND_ACC_PUBLIC |ZEND_ACC_FINAL )
575
581
PHP_ME (Manager , executeCommand , ai_Manager_executeCommand , ZEND_ACC_PUBLIC |ZEND_ACC_FINAL )
576
- PHP_ME (Manager , executeReadCommand , ai_Manager_executeCommand , ZEND_ACC_PUBLIC |ZEND_ACC_FINAL )
577
- PHP_ME (Manager , executeWriteCommand , ai_Manager_executeCommand , ZEND_ACC_PUBLIC |ZEND_ACC_FINAL )
582
+ PHP_ME (Manager , executeReadCommand , ai_Manager_executeRWCommand , ZEND_ACC_PUBLIC |ZEND_ACC_FINAL )
583
+ PHP_ME (Manager , executeWriteCommand , ai_Manager_executeRWCommand , ZEND_ACC_PUBLIC |ZEND_ACC_FINAL )
578
584
PHP_ME (Manager , executeReadWriteCommand , ai_Manager_executeCommand , ZEND_ACC_PUBLIC |ZEND_ACC_FINAL )
579
585
PHP_ME (Manager , executeQuery , ai_Manager_executeQuery , ZEND_ACC_PUBLIC |ZEND_ACC_FINAL )
580
586
PHP_ME (Manager , executeBulkWrite , ai_Manager_executeBulkWrite , ZEND_ACC_PUBLIC |ZEND_ACC_FINAL )
0 commit comments