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

 ID:                 45996
 Updated by:         [email protected]
 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:

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


Previous Comments:
------------------------------------------------------------------------
[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] [email protected]

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.

------------------------------------------------------------------------
[2010-07-07 23:17:53] i_cypher at hotmail dot com

I am seeing this error in 2.7.3 as well, so the fix does not seem to be
working.

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


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