Skip to content

Commit 00f1ba0

Browse files
committed
voidify
1 parent 4cfbe21 commit 00f1ba0

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

ext/standard/url.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -622,14 +622,13 @@ PHPAPI zend_string *php_raw_url_encode(char const *s, size_t len)
622622
}
623623
/* }}} */
624624

625-
PHPAPI size_t php_url_encode_to_smart_str(smart_str *buf, char const *s, size_t len, bool raw)
625+
PHPAPI void php_url_encode_to_smart_str(smart_str *buf, char const *s, size_t len, bool raw)
626626
{
627627
size_t start_length = smart_str_get_len(buf);
628628
size_t extend = zend_safe_address_guarded(3, len, 0);
629629
char *dest = smart_str_extend(buf, extend);
630630
size_t length = php_url_encode_impl((unsigned char *) dest, s, len, raw);
631631
ZSTR_LEN(buf->s) = start_length + length;
632-
return length;
633632
}
634633

635634
/* {{{ URL-encodes string */

ext/standard/url.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ PHPAPI size_t php_raw_url_decode(char *str, size_t len); /* return value: length
3838
PHPAPI size_t php_raw_url_decode_ex(char *dest, const char *src, size_t src_len);
3939
PHPAPI zend_string *php_url_encode(char const *s, size_t len);
4040
PHPAPI zend_string *php_raw_url_encode(char const *s, size_t len);
41-
PHPAPI size_t php_url_encode_to_smart_str(smart_str *buf, char const *s, size_t len, bool raw);
41+
PHPAPI void php_url_encode_to_smart_str(smart_str *buf, char const *s, size_t len, bool raw);
4242

4343
#define PHP_URL_SCHEME 0
4444
#define PHP_URL_HOST 1

0 commit comments

Comments
 (0)