@@ -526,7 +526,7 @@ bool phongo_parse_read_preference(zval* options, zval** zreadPreference TSRMLS_D
526
526
* not NULL, the option will be appended. If zsession is not NULL, it will be
527
527
* assigned to the option. On error, false is returned and an exception is
528
528
* thrown. */
529
- static bool phongo_parse_session (zval * options , mongoc_client_t * client , bson_t * mongoc_opts , zval * * zsession TSRMLS_DC ) /* {{{ */
529
+ static bool phongo_parse_session (zval * options , mongoc_client_t * client , bson_t * mongoc_opts , zval * * zsession TSRMLS_DC ) /* {{{ */
530
530
{
531
531
zval * option = NULL ;
532
532
const mongoc_client_session_t * client_session ;
@@ -727,7 +727,7 @@ bool phongo_execute_query(mongoc_client_t* client, const char* namespace, zval*
727
727
char * collname ;
728
728
mongoc_collection_t * collection ;
729
729
zval * zreadPreference = NULL ;
730
- zval * zsession = NULL ;
730
+ zval * zsession = NULL ;
731
731
732
732
if (!phongo_split_namespace (namespace , & dbname , & collname )) {
733
733
phongo_throw_exception (PHONGO_ERROR_INVALID_ARGUMENT TSRMLS_CC , "%s: %s" , "Invalid namespace provided" , namespace );
@@ -797,10 +797,10 @@ static bson_t* create_wrapped_command_envelope(const char* db, bson_t* reply)
797
797
return tmp ;
798
798
}
799
799
800
- static zval * phongo_create_implicit_session (mongoc_client_t * client TSRMLS_DC ) /* {{{ */
800
+ static zval * phongo_create_implicit_session (mongoc_client_t * client TSRMLS_DC ) /* {{{ */
801
801
{
802
- mongoc_client_session_t * cs ;
803
- zval * zsession ;
802
+ mongoc_client_session_t * cs ;
803
+ zval * zsession ;
804
804
805
805
cs = mongoc_client_start_session (client , NULL , NULL );
806
806
@@ -828,10 +828,10 @@ bool phongo_execute_command(mongoc_client_t* client, php_phongo_command_type_t t
828
828
bson_t opts = BSON_INITIALIZER ;
829
829
mongoc_cursor_t * cmd_cursor ;
830
830
zval * zreadPreference = NULL ;
831
- zval * zsession = NULL ;
832
- bool result = false;
833
- bool free_reply = false;
834
- bool free_zsession = false;
831
+ zval * zsession = NULL ;
832
+ bool result = false;
833
+ bool free_reply = false;
834
+ bool free_zsession = false;
835
835
836
836
command = Z_COMMAND_OBJ_P (zcommand );
837
837
@@ -934,8 +934,8 @@ bool phongo_execute_command(mongoc_client_t* client, php_phongo_command_type_t t
934
934
/* According to mongoc_cursor_new_from_command_reply(), the reply bson_t
935
935
* is ultimately destroyed on both success and failure. */
936
936
if (bson_iter_init_find (& iter , & reply , "cursor" ) && BSON_ITER_HOLDS_DOCUMENT (& iter )) {
937
- bson_t initial_reply = BSON_INITIALIZER ;
938
- bson_error_t error = {0 };
937
+ bson_t initial_reply = BSON_INITIALIZER ;
938
+ bson_error_t error = { 0 };
939
939
940
940
bson_copy_to (& reply , & initial_reply );
941
941
0 commit comments