Skip to content

Commit 0f2be98

Browse files
committed
voidify
1 parent 1a522f7 commit 0f2be98

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

ext/standard/url.c

+1-2
Original file line numberDiff line numberDiff line change
@@ -614,14 +614,13 @@ PHPAPI zend_string *php_raw_url_encode(char const *s, size_t len)
614614
}
615615
/* }}} */
616616

617-
PHPAPI size_t php_url_encode_to_smart_str(smart_str *buf, char const *s, size_t len, bool raw)
617+
PHPAPI void php_url_encode_to_smart_str(smart_str *buf, char const *s, size_t len, bool raw)
618618
{
619619
size_t start_length = smart_str_get_len(buf);
620620
size_t extend = zend_safe_address_guarded(3, len, 0);
621621
char *dest = smart_str_extend(buf, extend);
622622
size_t length = php_url_encode_impl((unsigned char *) dest, s, len, raw);
623623
ZSTR_LEN(buf->s) = start_length + length;
624-
return length;
625624
}
626625

627626
/* {{{ URL-encodes string */

ext/standard/url.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ PHPAPI size_t php_url_decode(char *str, size_t len); /* return value: length of
3636
PHPAPI size_t php_raw_url_decode(char *str, size_t len); /* return value: length of decoded string */
3737
PHPAPI zend_string *php_url_encode(char const *s, size_t len);
3838
PHPAPI zend_string *php_raw_url_encode(char const *s, size_t len);
39-
PHPAPI size_t php_url_encode_to_smart_str(smart_str *buf, char const *s, size_t len, bool raw);
39+
PHPAPI void php_url_encode_to_smart_str(smart_str *buf, char const *s, size_t len, bool raw);
4040

4141
#define PHP_URL_SCHEME 0
4242
#define PHP_URL_HOST 1

0 commit comments

Comments
 (0)