diff options
author | Xinchen Hui <laruence@gmail.com> | 2014-02-22 20:51:26 +0800 |
---|---|---|
committer | Xinchen Hui <laruence@gmail.com> | 2014-02-22 20:51:26 +0800 |
commit | 0e4cfad1e8f6d199fd396082985aa2a0bb7c716b (patch) | |
tree | 27fcf55577c80dfa4696e7877ba3179890aa35a6 /ext/standard/php_string.h | |
parent | 257853cade3a9fefa39b4d06827ff2bcbaff84d4 (diff) | |
download | php-git-0e4cfad1e8f6d199fd396082985aa2a0bb7c716b.tar.gz |
Refactor php_addcslashes using zend_string
Diffstat (limited to 'ext/standard/php_string.h')
-rw-r--r-- | ext/standard/php_string.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/standard/php_string.h b/ext/standard/php_string.h index 2396d40461..197b0950a8 100644 --- a/ext/standard/php_string.h +++ b/ext/standard/php_string.h @@ -121,8 +121,8 @@ PHPAPI struct lconv *localeconv_r(struct lconv *out); PHPAPI char *php_strtoupper(char *s, size_t len); PHPAPI char *php_strtolower(char *s, size_t len); PHPAPI char *php_strtr(char *str, int len, char *str_from, char *str_to, int trlen); -PHPAPI char *php_addslashes(char *str, int length, int *new_length, int freeit TSRMLS_DC); -PHPAPI char *php_addcslashes(const char *str, int length, int *new_length, int freeit, char *what, int wlength TSRMLS_DC); +PHPAPI char *php_addslashes(char *str, int length, int *new_length, int should_free TSRMLS_DC); +PHPAPI zend_string *php_addcslashes(const char *str, int length, int freeit, char *what, int wlength TSRMLS_DC); PHPAPI void php_stripslashes(char *str, int *len TSRMLS_DC); PHPAPI void php_stripcslashes(char *str, int *len); PHPAPI void php_basename(const char *s, size_t len, char *suffix, size_t sufflen, char **p_ret, size_t *p_len TSRMLS_DC); |