File tree 2 files changed +2
-3
lines changed
2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -614,14 +614,13 @@ PHPAPI zend_string *php_raw_url_encode(char const *s, size_t len)
614
614
}
615
615
/* }}} */
616
616
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 )
618
618
{
619
619
size_t start_length = smart_str_get_len (buf );
620
620
size_t extend = zend_safe_address_guarded (3 , len , 0 );
621
621
char * dest = smart_str_extend (buf , extend );
622
622
size_t length = php_url_encode_impl ((unsigned char * ) dest , s , len , raw );
623
623
ZSTR_LEN (buf -> s ) = start_length + length ;
624
- return length ;
625
624
}
626
625
627
626
/* {{{ URL-encodes string */
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ PHPAPI size_t php_url_decode(char *str, size_t len); /* return value: length of
36
36
PHPAPI size_t php_raw_url_decode (char * str , size_t len ); /* return value: length of decoded string */
37
37
PHPAPI zend_string * php_url_encode (char const * s , size_t len );
38
38
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 );
40
40
41
41
#define PHP_URL_SCHEME 0
42
42
#define PHP_URL_HOST 1
You can’t perform that action at this time.
0 commit comments