Skip to content

Commit 092d82d

Browse files
committed
Relocate "_t" in function name
1 parent 8082101 commit 092d82d

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

php_phongo.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ void phongo_throw_exception_from_bson_error_t(bson_error_t* error TSRMLS_DC)
190190
zend_throw_exception(phongo_exception_from_mongoc_domain(error->domain, error->code), error->message, error->code TSRMLS_CC);
191191
}
192192

193-
void phongo_throw_exception_from_bson_error_and_reply_t(bson_error_t* error, bson_t* reply TSRMLS_DC)
193+
void phongo_throw_exception_from_bson_error_t_and_reply(bson_error_t* error, bson_t* reply TSRMLS_DC)
194194
{
195195
/* Server errors (other than ExceededTimeLimit) and write concern errors
196196
* may use CommandException and report the result document for the
@@ -966,7 +966,7 @@ bool phongo_execute_command(mongoc_client_t* client, php_phongo_command_type_t t
966966
free_reply = true;
967967

968968
if (!result) {
969-
phongo_throw_exception_from_bson_error_and_reply_t(&error, &reply TSRMLS_CC);
969+
phongo_throw_exception_from_bson_error_t_and_reply(&error, &reply TSRMLS_CC);
970970
goto cleanup;
971971
}
972972

php_phongo.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ void phongo_throw_exception(php_phongo_error_domain_t domain TSRMLS
111111
#endif /* PHP_VERSION_ID < 70000 */
112112
;
113113
void phongo_throw_exception_from_bson_error_t(bson_error_t* error TSRMLS_DC);
114-
void phongo_throw_exception_from_bson_error_and_reply_t(bson_error_t* error, bson_t* reply TSRMLS_DC);
114+
void phongo_throw_exception_from_bson_error_t_and_reply(bson_error_t* error, bson_t* reply TSRMLS_DC);
115115

116116
/* This enum is used for processing options in phongo_execute_parse_options and
117117
* selecting a libmongoc function to use in phongo_execute_command. The values

src/MongoDB/Session.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ static PHP_METHOD(Session, commitTransaction)
361361
}
362362

363363
if (!mongoc_client_session_commit_transaction(intern->client_session, &reply, &error)) {
364-
phongo_throw_exception_from_bson_error_and_reply_t(&error, &reply TSRMLS_CC);
364+
phongo_throw_exception_from_bson_error_t_and_reply(&error, &reply TSRMLS_CC);
365365
bson_destroy(&reply);
366366
}
367367
} /* }}} */

0 commit comments

Comments
 (0)