Bug #53677 [Opn]: xml_parse_into_struct deletes unescaped character data

From: Date: Thu, 06 Jan 2011 21:05:23 +0000
Subject: Bug #53677 [Opn]: xml_parse_into_struct deletes unescaped character data
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-157707@lists.php.net to get a copy of this message
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

« previous php.bugs (#157707) next »