File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
Expand file tree Collapse file tree 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)
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 */
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
3636PHPAPI size_t php_raw_url_decode (char * str , size_t len ); /* return value: length of decoded string */
3737PHPAPI zend_string * php_url_encode (char const * s , size_t len );
3838PHPAPI 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
You can’t perform that action at this time.
0 commit comments