From bde1fe4d8140af77d7d91c863a1b425037de17d4 Mon Sep 17 00:00:00 2001 From: Moriyoshi Koizumi Date: Tue, 21 Oct 2003 01:46:54 +0000 Subject: [PATCH] Missing '&' in the result of get_html_translation_table() --- ext/standard/html.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ext/standard/html.c b/ext/standard/html.c index 26ae951f2e..aa3246d303 100644 --- a/ext/standard/html.c +++ b/ext/standard/html.c @@ -1229,8 +1229,10 @@ PHP_FUNCTION(get_html_translation_table) continue; ind[0] = (unsigned char)basic_entities[j].charcode; - add_assoc_string(return_value, ind, basic_entities[j].entity, 1); + add_assoc_stringl(return_value, ind, basic_entities[j].entity, basic_entities[j].entitylen, 1); } + add_assoc_stringl(return_value, "&", "&", sizeof("&") - 1, 1); + break; } } -- 2.50.1