We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f7eeb4c + 84f7b2c commit 778712eCopy full SHA for 778712e
1 file changed
ext/uri/uri_parser_rfc3986.c
@@ -247,7 +247,7 @@ ZEND_ATTRIBUTE_NONNULL static zend_result php_uri_parser_rfc3986_host_read(void
247
*(out++) = ']';
248
*out = '\0';
249
250
- ZVAL_STR(retval, host_str);
+ ZVAL_NEW_STR(retval, host_str);
251
} else {
252
ZVAL_STRINGL(retval, uriparser_uri->hostText.first, get_text_range_length(&uriparser_uri->hostText));
253
}
@@ -382,7 +382,7 @@ ZEND_ATTRIBUTE_NONNULL static zend_result php_uri_parser_rfc3986_path_read(void
382
383
384
385
- ZVAL_STR(retval, str);
+ ZVAL_NEW_STR(retval, str);
386
} else if (uriparser_uri->absolutePath) {
387
ZVAL_CHAR(retval, '/');
388
0 commit comments