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

 ID:                 45996
 Comment by:         david at moodle dot com
 Reported by:        phpbugs at colin dot guthr dot ie
 Summary:            libxml2 2.7.1 causes breakage with character data in
                     xml_parse()
 Status:             Closed
 Type:               Bug
 Package:            XML related
 Operating System:   Mandriva Linux
 PHP Version:        5.2.6
 Assigned To:        rrichards
 Block user comment: N
 Private report:     N

 New Comment:

In Moodle (http:/moodle.org), this issue causes troubles in several
areas, including SSO support via MNet. Today, I was debugging some SSO
problem in Moodle/Mahara and tracked it down to this xml_parse() issue.
I have published a patch with workaround for the SSO in Moodle at
http://moodle.org/mod/forum/discuss.php?d=101459#p753158



In this particular case, the combination was PHP 5.2.13-pl0-gentoo and
libxml 2.7.3 (note that this combo is supposed to be fixed already).


Previous Comments:
------------------------------------------------------------------------
[2011-01-04 22:08:21] rricha...@php.net

HTML is not XML so non issue as the sax parser is not meant to handle
HTML

If PHP is not linked against 2.7.3 or higher it wont work either.

So back to "Compile PHP (5.2.9 or higher) against the newer libxml
(2.7.3 or 

higher)" as most of those search results even tell you. Without phpinfo
and your 

sample code I would say the problem is on your end

------------------------------------------------------------------------
[2011-01-04 21:54:53] lwc at mailmetrash dot cm

Regarding your e-mail message, please let's continue this discussion
publicly. It's established that this bug can happen with any (HTML)
input, so there's no point exposing my own. Check out
http://www.google.com/search?q=libxml+%2Bbrackets for tons of example
code.



But most importantly, is it possible that all this time no one ever
posted a bug about it in libxml's own tracker? If so, I think I'll post
something there soon.

------------------------------------------------------------------------
[2011-01-04 20:55:54] lwc at mailmetrash dot com

Again, I use libxml v2.7.7 (with PHP v5.2.14).

------------------------------------------------------------------------
[2011-01-04 20:04:33] rricha...@php.net

To hopefully close this once and for all:

Compile PHP (5.2.9 or higher) against the newer libxml (2.7.3 or
higher).

PHP code change:

http://svn.php.net/viewvc/php/php-src/branches/PHP_5_2/ext/xml/compat.c?

r1=272374&r2=273286

Libxml code change:

http://svn.gnome.org/viewvc/libxml2/trunk/parser.c?r1=3803&r2=3807

------------------------------------------------------------------------
[2011-01-04 19:50:35] lwc at mailmetrash dot com

It still happens to me even in libxml v2.7.7.



Please take it seriously. At least mention in what scenarios does it
happen and does it have a link in libxml's own bug tracker.

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


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/bug.php?id=45996


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

Reply via email to