From:             phpbugs at colin dot guthr dot ie
Operating system: Mandriva Linux
PHP version:      5.2.6
PHP Bug Type:     *XML functions
Bug description:  libxml2 2.7.1 causes breakage with character data in 
xml_parse()

Description:
------------
With libxml2 2.7.1, When using the expat type xml parsing routines in PHP,
the characater data seems to silently drop any encoded text e.g. > <
and friends.

Please see Mandriva bug for details:
https://qa.mandriva.com/show_bug.cgi?id=43486

And also please note the thread on the libxml mailing list:
http://thread.gmane.org/gmane.comp.gnome.lib.xml.general/14610

And most notably the reply to the above thread:
<quote>
Can you report this as a PHP bug? It looks like some really old hack 
code in the PHP extension in order to mimic some specific expat 
functionality. The behavior change you see though resulting from a code
changes in libxml2 is really due to the hackish code in the extension doing
things it wasnt meant to be doing.
</quote>

Reproduce code:
---------------
Please see this code:
https://qa.mandriva.com/attachment.cgi?id=10757

Expected result:
----------------
<
foo
>
wibble
<
/foo
>


Actual result:
--------------
foo
wibble
/foo


-- 
Edit bug report at http://bugs.php.net/?id=45996&edit=1
-- 
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=45996&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): 
http://bugs.php.net/fix.php?id=45996&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=45996&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=45996&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=45996&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=45996&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=45996&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=45996&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=45996&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=45996&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=45996&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=45996&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=45996&r=globals
PHP 4 support discontinued:   http://bugs.php.net/fix.php?id=45996&r=php4
Daylight Savings:             http://bugs.php.net/fix.php?id=45996&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=45996&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=45996&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=45996&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=45996&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=45996&r=mysqlcfg

Reply via email to