We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ac4e3cd + 3f7bfaf commit 8f8d2a4Copy full SHA for 8f8d2a4
1 file changed
ext/uri/uri_parser_rfc3986.c
@@ -595,6 +595,7 @@ ZEND_ATTRIBUTE_NONNULL static zend_string *php_uri_parser_rfc3986_to_string(void
595
const char *pos = zend_memrchr(ZSTR_VAL(uri_string), '#', ZSTR_LEN(uri_string));
596
if (pos != NULL) {
597
uri_string = zend_string_truncate(uri_string, (pos - ZSTR_VAL(uri_string)), false);
598
+ ZSTR_VAL(uri_string)[ZSTR_LEN(uri_string)] = '\0';
599
}
600
601
0 commit comments