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 @@ -622,14 +622,13 @@ PHPAPI zend_string *php_raw_url_encode(char const *s, size_t len)
622
622
}
623
623
/* }}} */
624
624
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 )
626
626
{
627
627
size_t start_length = smart_str_get_len (buf );
628
628
size_t extend = zend_safe_address_guarded (3 , len , 0 );
629
629
char * dest = smart_str_extend (buf , extend );
630
630
size_t length = php_url_encode_impl ((unsigned char * ) dest , s , len , raw );
631
631
ZSTR_LEN (buf -> s ) = start_length + length ;
632
- return length ;
633
632
}
634
633
635
634
/* {{{ URL-encodes string */
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ PHPAPI size_t php_raw_url_decode(char *str, size_t len); /* return value: length
38
38
PHPAPI size_t php_raw_url_decode_ex (char * dest , const char * src , size_t src_len );
39
39
PHPAPI zend_string * php_url_encode (char const * s , size_t len );
40
40
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 );
42
42
43
43
#define PHP_URL_SCHEME 0
44
44
#define PHP_URL_HOST 1
You can’t perform that action at this time.
0 commit comments