We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 75dcdad commit 9e763f3Copy full SHA for 9e763f3
1 file changed
ext/uri/uri_parser_rfc3986.c
@@ -237,11 +237,9 @@ ZEND_ATTRIBUTE_NONNULL static zend_result php_uri_parser_rfc3986_host_read(void
237
if (has_text_range(&uriparser_uri->hostText)) {
238
if (uriparser_uri->hostData.ip6 != NULL || uriparser_uri->hostData.ipFuture.first != NULL) {
239
/* the textual representation of the host is always accessible in the .hostText field no matter what the host is */
240
- const size_t host_len = get_text_range_length(&uriparser_uri->hostText);
241
-
242
zend_string *host_str = zend_string_concat3(
243
"[", 1,
244
- uriparser_uri->hostText.first, host_len,
+ uriparser_uri->hostText.first, get_text_range_length(&uriparser_uri->hostText),
245
"]", 1
246
);
247
ZVAL_NEW_STR(retval, host_str);
0 commit comments