summaryrefslogtreecommitdiff
path: root/ext/standard/html.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/standard/html.c')
-rw-r--r--ext/standard/html.c4
1 files changed, 3 insertions, 1 deletions
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;
}
}