Skip to content

Commit 3740eaa

Browse files
committed
No need for TSRMLS here -- no calls to PHP at all
1 parent 1903b72 commit 3740eaa

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

php_phongo.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1553,7 +1553,7 @@ void php_phongo_cursor_to_zval(zval *retval, php_phongo_cursor_t *cursor) /* {{{
15531553
/* }}} */
15541554

15551555

1556-
mongoc_uri_t *php_phongo_make_uri(const char *uri_string, bson_t *options TSRMLS_DC) /* {{{ */
1556+
mongoc_uri_t *php_phongo_make_uri(const char *uri_string, bson_t *options) /* {{{ */
15571557
{
15581558
bson_iter_t iter;
15591559
mongoc_uri_t *uri;

php_phongo.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ void php_phongo_cursor_to_zval(zval *retval, php_phongo_cursor_t *cursor);
135135

136136
bool php_phongo_apply_rp_options_to_client(mongoc_client_t *client, bson_t *options TSRMLS_DC);
137137
bool php_phongo_apply_wc_options_to_client(mongoc_client_t *client, bson_t *options TSRMLS_DC);
138-
mongoc_uri_t *php_phongo_make_uri(const char *uri_string, bson_t *options TSRMLS_DC);
138+
mongoc_uri_t *php_phongo_make_uri(const char *uri_string, bson_t *options);
139139
mongoc_client_t *php_phongo_make_mongo_client(const mongoc_uri_t *uri, zval *driverOptions TSRMLS_DC);
140140
void php_phongo_objectid_new_from_oid(zval *object, const bson_oid_t *oid TSRMLS_DC);
141141
void php_phongo_cursor_id_new_from_id(zval *object, int64_t cursorid TSRMLS_DC);

src/MongoDB/Manager.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ PHP_METHOD(Manager, __construct)
8282
zval_to_bson(options, PHONGO_BSON_NONE, &bson_options, NULL TSRMLS_CC);
8383
}
8484

85-
if (!(uri = php_phongo_make_uri(uri_string, &bson_options TSRMLS_CC))) {
85+
if (!(uri = php_phongo_make_uri(uri_string, &bson_options))) {
8686
phongo_throw_exception(PHONGO_ERROR_INVALID_ARGUMENT TSRMLS_CC, "Failed to parse MongoDB URI: '%s'", uri_string);
8787
bson_destroy(&bson_options);
8888

0 commit comments

Comments
 (0)