Skip to content

Commit 6d8f7e9

Browse files
committed
Fix zts build.. TSRMLS_FETCH_FROM_CTX declares variables and therefore must come first
1 parent 69fe06a commit 6d8f7e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

php_phongo.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -659,9 +659,9 @@ void phongo_stream_failed(mongoc_stream_t *stream_wrap) /* {{{ */
659659
php_phongo_stream_socket *base_stream = (php_phongo_stream_socket *)stream_wrap;
660660

661661
if (base_stream->stream) {
662-
mongoc_log(MONGOC_LOG_LEVEL_DEBUG, MONGOC_LOG_DOMAIN, "Destroying RSRC#%d", base_stream->stream->rsrc_id);
663662
TSRMLS_FETCH_FROM_CTX(base_stream->tsrm_ls);
664663

664+
mongoc_log(MONGOC_LOG_LEVEL_DEBUG, MONGOC_LOG_DOMAIN, "Destroying RSRC#%d", base_stream->stream->rsrc_id);
665665
php_stream_free(base_stream->stream, PHP_STREAM_FREE_CLOSE_PERSISTENT | PHP_STREAM_FREE_RSRC_DTOR);
666666
base_stream->stream = NULL;
667667
}

0 commit comments

Comments
 (0)