mirror of
https://github.com/macintoshplus/mongo-php-driver.git
synced 2026-04-01 22:02:23 +02:00
PHPC-397: RETURN_STRING() duplicate argument removed
This commit is contained in:
committed by
Derick Rethans
parent
bf00161ef3
commit
36ce2d7ecd
@@ -161,6 +161,7 @@
|
||||
# define ZEND_HASH_APPLY_COUNT(ht) (ht)->u.v.nApplyCount
|
||||
# define PHONGO_RETVAL_STRINGL(s, slen) RETVAL_STRINGL(s, slen)
|
||||
# define PHONGO_RETURN_STRINGL(s, slen) RETVAL_STRINGL(s, slen)
|
||||
# define PHONGO_RETURN_STRING(s) RETVAL_STRING(s)
|
||||
#else
|
||||
# define phongo_char char
|
||||
# define phongo_char_pdup(str) pestrdup(filename, 1)
|
||||
@@ -181,6 +182,7 @@
|
||||
# define ZEND_HASH_APPLY_COUNT(ht) (ht)->nApplyCount
|
||||
# define PHONGO_RETVAL_STRINGL(s, slen) RETVAL_STRINGL(s, slen, 1)
|
||||
# define PHONGO_RETURN_STRINGL(s, slen) RETVAL_STRINGL(s, slen, 1)
|
||||
# define PHONGO_RETURN_STRING(s) RETVAL_STRING(s, 1)
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
@@ -147,7 +147,7 @@ PHP_METHOD(Server, getHost)
|
||||
}
|
||||
|
||||
if ((sd = mongoc_topology_description_server_by_id(&intern->client->topology->description, intern->server_id, &error))) {
|
||||
RETURN_STRING(sd->host.host, 1);
|
||||
PHONGO_RETURN_STRING(sd->host.host);
|
||||
}
|
||||
|
||||
phongo_throw_exception(PHONGO_ERROR_RUNTIME TSRMLS_CC, "Failed to get server description: %s", error.message);
|
||||
|
||||
@@ -95,7 +95,7 @@ PHP_METHOD(WriteConcernError, getMessage)
|
||||
return;
|
||||
}
|
||||
|
||||
RETURN_STRING(intern->message, 1);
|
||||
PHONGO_RETURN_STRING(intern->message);
|
||||
}
|
||||
/* }}} */
|
||||
|
||||
|
||||
@@ -94,7 +94,7 @@ PHP_METHOD(WriteError, getMessage)
|
||||
}
|
||||
|
||||
|
||||
RETURN_STRING(intern->message, 1);
|
||||
PHONGO_RETURN_STRING(intern->message);
|
||||
}
|
||||
/* }}} */
|
||||
/* {{{ proto mixed WriteError::getInfo()
|
||||
|
||||
Reference in New Issue
Block a user