--- embedaddon/php/ext/standard/html.c 2013/07/22 01:32:05 1.1.1.3
+++ embedaddon/php/ext/standard/html.c 2013/10/14 08:02:34 1.1.1.4
@@ -19,7 +19,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: html.c,v 1.1.1.3 2013/07/22 01:32:05 misho Exp $ */
+/* $Id: html.c,v 1.1.1.4 2013/10/14 08:02:34 misho Exp $ */
/*
* HTML entity resources:
@@ -1221,8 +1221,8 @@ PHPAPI char *php_escape_html_entities_ex(unsigned char
const enc_to_uni *to_uni_table = NULL;
const entity_ht *inv_map = NULL; /* used for !double_encode */
/* only used if flags includes ENT_HTML_IGNORE_ERRORS or ENT_HTML_SUBSTITUTE_DISALLOWED_CHARS */
- const unsigned char *replacement;
- size_t replacement_len;
+ const unsigned char *replacement = NULL;
+ size_t replacement_len = 0;
if (all) { /* replace with all named entities */
if (CHARSET_PARTIAL_SUPPORT(charset)) {
@@ -1596,7 +1596,7 @@ PHP_FUNCTION(get_html_translation_table)
flags = ENT_COMPAT;
int doctype;
entity_table_opt entity_table;
- const enc_to_uni *to_uni_table;
+ const enc_to_uni *to_uni_table = NULL;
char *charset_hint = NULL;
int charset_hint_len;
enum entity_charset charset;