Edit report at http://bugs.php.net/bug.php?id=53677&edit=1

 ID:                 53677
 User updated by:    lwc at mailmetrash dot com
 Reported by:        lwc at mailmetrash dot com
-Summary:            xml_parse_into_struct does not unescape character
                     data
+Summary:            xml_parse_into_struct deletes unescaped character
                     data
 Status:             Open
 Type:               Bug
 Package:            XML related
 Operating System:   Redhat Linux
 PHP Version:        5.2.14
 Block user comment: N
 Private report:     N

 New Comment:

Sorry, here's a fixed description.
<this>&lt;that&gt;tag&lt;that/&gt;</this> should turn into:

[name] => this

[value] => <that>tag</that>

But in some cases it turns into:

[name] => this

[value] => tag/



That is, it's not even kept. It's just deleted!


Previous Comments:
------------------------------------------------------------------------
[2011-01-06 21:48:10] lwc at mailmetrash dot com

As for the "(as claimed in)" comment, you can delete it. They actually
claim you should use straight up HTML without escaping it. Problem is
the parser then treats the HTML tags like XML ones. If you have a
solution for that one, please post it there.

------------------------------------------------------------------------
[2011-01-06 21:40:58] lwc at mailmetrash dot com

Description:
------------
Assuming #26528 is also valid for the actual character data (as claimed
in http://forum.alicebot.org/viewtopic.php?t=69), then the parser should
decode <this>&lt;that&gt;</this> into:

[name] => this

[value] => <that>

The problem is in some cases it stays as:

[name] => this

[value] => &lt;that&gt;



In my 2 unrelated servers, the decoding works in v5.2.6 but fails in
v5.2.14.



Please check in newer versions, if you can!



------------------------------------------------------------------------



-- 
Edit this bug report at http://bugs.php.net/bug.php?id=53677&edit=1

Reply via email to