#45996 [Com]: libxml2 2.7.1 causes breakage with character data in xml_parse()

From: Date: Thu, 30 Oct 2008 18:19:16 +0000
Subject: #45996 [Com]: libxml2 2.7.1 causes breakage with character data in xml_parse()
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-130336@lists.php.net to get a copy of this message
 ID:               45996
 Comment by:       phpbugs at hm2k dot org
 Reported By:      phpbugs at colin dot guthr dot ie
 Status:           Assigned
 Bug Type:         XML related
 Operating System: Mandriva Linux
 PHP Version:      5.2.6
 Assigned To:      rrichards
 New Comment:

This problem is also documented here...

http://social.microsoft.com/Forums/en-US/writerbeta/thread/62ad697b-ed19-4b0b-ae6a-32bec06b142b/


Previous Comments:
------------------------------------------------------------------------

[2008-10-25 18:12:57] alykhanii at yahoo dot com

This bug has messed up the XMLRPC upload capabilities in Wordpress
hopefully a solution is coming soon.

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

[2008-10-24 20:47:08] sanepit at o2 dot pl

I have the same problem on Gentoo with new libxml2-2.6.32
In moodle platform this problem disable to restore courses backup.

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

[2008-10-22 11:39:48] markus dot gevers at contenit dot de

Hallo,

is there a solution yet?

I have the same problem on Fedora Core 9.
I also have this problem using libxml2-2.6.32

Can anyone help me?

Best regards,
Markus

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

[2008-10-17 14:08:57] rrichards@php.net

Changing the flag fixes internally defined entities, but breaks the
rest 
of the entity handling.

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

[2008-10-17 13:40:27] jorton@php.net

So far as I can tell the only problem here is that libxml2 is bailing
in parser.c:xmlParseReference() because the ctxt->wellFormed flag is
cleared.  It is set to zero by compat.c, which seems simply wrong;
xmlCreate*ParserContext initialize it to non-zero.

If I apply this patch it works fine:

http://people.apache.org/~jorton/php-5.2.6-xmlwformed.patch

Rob?

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

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/45996

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



Thread (54 messages)

« previous php.bugs (#130336) next »