Skip to content

Commit 3f341ad

Browse files
committed
PHPC-606: Use mongoc_client_get_server_description()
1 parent 888211c commit 3f341ad

File tree

2 files changed

+87
-74
lines changed

2 files changed

+87
-74
lines changed

phongo_compat.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@
154154
# define ZEND_HASH_APPLY_COUNT(ht) (ht)->u.v.nApplyCount
155155
# define PHONGO_RETVAL_STRINGL(s, slen) RETVAL_STRINGL(s, slen)
156156
# define PHONGO_RETURN_STRINGL(s, slen) RETURN_STRINGL(s, slen)
157+
# define PHONGO_RETVAL_STRING(s) RETVAL_STRING(s)
157158
# define PHONGO_RETURN_STRING(s) RETURN_STRING(s)
158159
#else
159160
# define phongo_char char
@@ -186,6 +187,7 @@
186187
# define ZEND_HASH_APPLY_COUNT(ht) (ht)->nApplyCount
187188
# define PHONGO_RETVAL_STRINGL(s, slen) RETVAL_STRINGL(s, slen, 1)
188189
# define PHONGO_RETURN_STRINGL(s, slen) RETURN_STRINGL(s, slen, 1)
190+
# define PHONGO_RETVAL_STRING(s) RETVAL_STRING(s, 1)
189191
# define PHONGO_RETURN_STRING(s) RETURN_STRING(s, 1)
190192
# define PHP_STREAM_CONTEXT(stream) ((php_stream_context*) (stream)->context)
191193
#endif

0 commit comments

Comments
 (0)