ZEND_BEGIN_ARG_INFO_EX(arginfo_htmlspecialchars, 0, 0, 1)
ZEND_ARG_INFO(0, string)
ZEND_ARG_INFO(0, quote_style)
- ZEND_ARG_INFO(0, charset)
+ ZEND_ARG_INFO(0, encoding)
ZEND_ARG_INFO(0, double_encode)
ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_INFO_EX(arginfo_html_entity_decode, 0, 0, 1)
ZEND_ARG_INFO(0, string)
ZEND_ARG_INFO(0, quote_style)
- ZEND_ARG_INFO(0, charset)
+ ZEND_ARG_INFO(0, encoding)
ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_INFO_EX(arginfo_htmlentities, 0, 0, 1)
ZEND_ARG_INFO(0, string)
ZEND_ARG_INFO(0, quote_style)
- ZEND_ARG_INFO(0, charset)
+ ZEND_ARG_INFO(0, encoding)
ZEND_ARG_INFO(0, double_encode)
ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_INFO_EX(arginfo_get_html_translation_table, 0, 0, 0)
ZEND_ARG_INFO(0, table)
ZEND_ARG_INFO(0, quote_style)
+ ZEND_ARG_INFO(0, encoding)
ZEND_END_ARG_INFO()
/* }}} */
}
/* }}} */
-/* {{{ proto string htmlspecialchars(string string [, int quote_style[, string charset[, bool double_encode]]])
+/* {{{ proto string htmlspecialchars(string string [, int quote_style[, string encoding[, bool double_encode]]])
Convert special characters to HTML entities */
PHP_FUNCTION(htmlspecialchars)
{
}
/* }}} */
-/* {{{ proto string html_entity_decode(string string [, int quote_style][, string charset])
+/* {{{ proto string html_entity_decode(string string [, int quote_style][, string encoding])
Convert all HTML entities to their applicable characters */
PHP_FUNCTION(html_entity_decode)
{
/* }}} */
-/* {{{ proto string htmlentities(string string [, int quote_style[, string charset[, bool double_encode]]])
+/* {{{ proto string htmlentities(string string [, int quote_style[, string encoding[, bool double_encode]]])
Convert all applicable characters to HTML entities */
PHP_FUNCTION(htmlentities)
{
}
/* }}} */
-/* {{{ proto array get_html_translation_table([int table [, int flags [, string charset_hint]]])
+/* {{{ proto array get_html_translation_table([int table [, int flags [, string encoding]]])
Returns the internal translation table used by htmlspecialchars and htmlentities */
PHP_FUNCTION(get_html_translation_table)
{
--- /dev/null
+--TEST--
+Bug #61116 (HTML functions use encoding, not charset)
+--FILE--
+<?php
+Reflection::export(new ReflectionFunction('htmlspecialchars'));
+Reflection::export(new ReflectionFunction('get_html_translation_table'));
+?>
+--EXPECT--
+Function [ <internal:standard> function htmlspecialchars ] {
+
+ - Parameters [4] {
+ Parameter #0 [ <required> $string ]
+ Parameter #1 [ <optional> $quote_style ]
+ Parameter #2 [ <optional> $encoding ]
+ Parameter #3 [ <optional> $double_encode ]
+ }
+}
+
+Function [ <internal:standard> function get_html_translation_table ] {
+
+ - Parameters [3] {
+ Parameter #0 [ <optional> $table ]
+ Parameter #1 [ <optional> $quote_style ]
+ Parameter #2 [ <optional> $encoding ]
+ }
+}
+
+
+