From: Moriyoshi Koizumi Date: Tue, 21 Oct 2003 01:46:54 +0000 (+0000) Subject: Missing '&' in the result of get_html_translation_table() X-Git-Tag: php-5.0.0b2RC1~23 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bde1fe4d8140af77d7d91c863a1b425037de17d4;p=php Missing '&' in the result of get_html_translation_table() --- 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; } }