Patch php-src for Strings related Bug #61116
Patch version 2012-02-16 23:54 UTC
Return to Bug #61116 |
Download this patch
Patch Revisions:
Developer: vrana@php.net
Index: ext/standard/basic_functions.c
===================================================================
--- ext/standard/basic_functions.c (revision 323268)
+++ ext/standard/basic_functions.c (working copy)
@@ -1486,7 +1486,7 @@
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()
@@ -1498,19 +1498,20 @@
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()
/* }}} */
Index: ext/standard/html.c
===================================================================
--- ext/standard/html.c (revision 323268)
+++ ext/standard/html.c (working copy)
@@ -1469,7 +1469,7 @@
}
/* }}} */
-/* {{{ 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)
{
@@ -1499,7 +1499,7 @@
}
/* }}} */
-/* {{{ 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)
{
@@ -1523,7 +1523,7 @@
/* }}} */
-/* {{{ 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)
{
@@ -1587,7 +1587,7 @@
}
/* }}} */
-/* {{{ 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)
{
|