Skip to content

Commit 0cb3f9a

Browse files
authored
uri: Improve return type of uriparser_parse_uri_ex() (#19540)
This function is not intended to be called via a function pointer, so we don't need to deal with a generic `void*`.
1 parent 089b020 commit 0cb3f9a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ext/uri/uri_parser_rfc3986.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ static uriparser_uris_t *uriparser_create_uris(void)
283283
return uriparser_uris;
284284
}
285285

286-
void *uriparser_parse_uri_ex(const char *uri_str, size_t uri_str_len, const uriparser_uris_t *uriparser_base_urls, bool silent)
286+
uriparser_uris_t *uriparser_parse_uri_ex(const char *uri_str, size_t uri_str_len, const uriparser_uris_t *uriparser_base_urls, bool silent)
287287
{
288288
UriUriA uri = {0};
289289

ext/uri/uri_parser_rfc3986.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@ typedef struct uriparser_uris_t {
3030

3131
zend_result uriparser_read_userinfo(const uri_internal_t *internal_uri, uri_component_read_mode_t read_mode, zval *retval);
3232

33-
void *uriparser_parse_uri_ex(const char *uri_str, size_t uri_str_len, const uriparser_uris_t *uriparser_base_url, bool silent);
33+
uriparser_uris_t *uriparser_parse_uri_ex(const char *uri_str, size_t uri_str_len, const uriparser_uris_t *uriparser_base_url, bool silent);
3434

3535
#endif

0 commit comments

Comments
 (0)