summaryrefslogtreecommitdiff
path: root/ext/standard/html.h
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2017-06-06 16:09:26 +0300
committerDmitry Stogov <dmitry@zend.com>2017-06-06 16:09:26 +0300
commit68dc7549988fcc929717a7b0c69e007000512fc1 (patch)
tree4739347aaa59dd72def495e6e5633c2ba01d60ec /ext/standard/html.h
parent6a024146bb6acf116241622681df64219a7894ed (diff)
downloadphp-git-68dc7549988fcc929717a7b0c69e007000512fc1.tar.gz
Avoid string reallocations in html_entity_decode() and htmlspecialchars_decode()
Diffstat (limited to 'ext/standard/html.h')
-rw-r--r--ext/standard/html.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/html.h b/ext/standard/html.h
index e090aab692..9ef23bc322 100644
--- a/ext/standard/html.h
+++ b/ext/standard/html.h
@@ -56,7 +56,7 @@ PHP_FUNCTION(get_html_translation_table);
PHPAPI zend_string *php_escape_html_entities(unsigned char *old, size_t oldlen, int all, int flags, char *hint_charset);
PHPAPI zend_string *php_escape_html_entities_ex(unsigned char *old, size_t oldlen, int all, int flags, char *hint_charset, zend_bool double_encode);
-PHPAPI zend_string *php_unescape_html_entities(unsigned char *old, size_t oldlen, int all, int flags, char *hint_charset);
+PHPAPI zend_string *php_unescape_html_entities(zend_string *str, int all, int flags, char *hint_charset);
PHPAPI unsigned int php_next_utf8_char(const unsigned char *str, size_t str_len, size_t *cursor, int *status);
#endif /* HTML_H */