Skip to content

Commit 778712e

Browse files
committed
Merge branch 'optimize-3' of https://github.com/LamentXU123/php-src into optimize-3
2 parents f7eeb4c + 84f7b2c commit 778712e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ext/uri/uri_parser_rfc3986.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ ZEND_ATTRIBUTE_NONNULL static zend_result php_uri_parser_rfc3986_host_read(void
247247
*(out++) = ']';
248248
*out = '\0';
249249

250-
ZVAL_STR(retval, host_str);
250+
ZVAL_NEW_STR(retval, host_str);
251251
} else {
252252
ZVAL_STRINGL(retval, uriparser_uri->hostText.first, get_text_range_length(&uriparser_uri->hostText));
253253
}
@@ -382,7 +382,7 @@ ZEND_ATTRIBUTE_NONNULL static zend_result php_uri_parser_rfc3986_path_read(void
382382
}
383383

384384
*out = '\0';
385-
ZVAL_STR(retval, str);
385+
ZVAL_NEW_STR(retval, str);
386386
} else if (uriparser_uri->absolutePath) {
387387
ZVAL_CHAR(retval, '/');
388388
} else {

0 commit comments

Comments
 (0)