diff options
| author | Moriyoshi Koizumi <moriyoshi@php.net> | 2003-10-21 01:46:54 +0000 |
|---|---|---|
| committer | Moriyoshi Koizumi <moriyoshi@php.net> | 2003-10-21 01:46:54 +0000 |
| commit | bde1fe4d8140af77d7d91c863a1b425037de17d4 (patch) | |
| tree | b55a3585a6241790a2f4ff940eeacd999a4ad30f /ext/standard/html.c | |
| parent | 06370c91321b3b26bbeba293fab0185dd1a47545 (diff) | |
| download | php-git-bde1fe4d8140af77d7d91c863a1b425037de17d4.tar.gz | |
Missing '&' in the result of get_html_translation_table()
Diffstat (limited to 'ext/standard/html.c')
| -rw-r--r-- | ext/standard/html.c | 4 |
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; } } |
