Bug #1263: Alternative fix for #1116 (xml.c)
| From: | greg at elysium dot ltd dot uk | Date: | Thu, 25 Mar 1999 11:43:40 +0000 |
| Subject: | Bug #1263: Alternative fix for #1116 (xml.c) | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-4758@lists.php.net to get a copy of this message | ||
From: greg@elysium.ltd.uk
Operating system: Linux 2.0.35
PHP version: 3.0.7
PHP Bug Type: Misbehaving function
Bug description: Alternative fix for #1116 (xml.c)
Symptom: Garbage characters appearing after attribute values passed to startElementHandler by
php3i_xml_startElementHandler in xml.c.
Already fixed in CVS (xml.c v1.22 -> v1.23).
However, since 0x00 is (in general) a valid character, it might be better to leave xml_utf8_decode
alone and fix the problem in php3i_xml_startElementHandler instead, with the following one-liner:
< add_assoc_string(args[2], key, decoded_value, 0);
---
> add_assoc_stringl(args[2], key, decoded_value, decoded_len, 0);
Up to you. I'd already done this before seeing the other fix, so I thought I might as well
report it...
--
PHP Development Mailing List http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net
For help: php-dev-help@lists.php.net