From:             bill at billjill dot org
Operating system: Linux
PHP version:      5.2.8
PHP Bug Type:     XML Reader
Bug description:  xml_parse now ignoring html entities in the xml

Description:
------------
Under 5.2.6 and earlier version, the xml parser would correctly read in
html entities (such as <) in the XML. In 5.2.8, these entities are being
ignored

Reproduce code:
---------------
You can see the source for a simple test program here:
http://outofthebloo.com/test/xmlparsertest.php.txt

Expected result:
----------------
Do a View Source on the result of the xmlparsertest.php program, and you
should see this (see the portion toward the bottom near "This should be
bold")

Array
(
    [0] => Array
        (
            [name] => OVERLAYS
            [attrs] => Array
                (
                )

            [children] => Array
                (
                    [0] => Array
                        (
                            [name] => OVERLAY
                            [attrs] => Array
                                (
                                )

                            [children] => Array
                                (
                                    [0] => Array
                                        (
                                            [name] => NAME
                                            [attrs] => Array
                                                (
                                                )

                                            [tagData] => Test
                                        )

                                    [1] => Array
                                        (
                                            [name] => TYPE
                                            [attrs] => Array
                                                (
                                                )

                                            [tagData] => template
                                        )

                                    [2] => Array
                                        (
                                            [name] => SYNTAX
                                            [attrs] => Array
                                                (
                                                )

                                            [tagData] => <div
id=quote><b>This should be bold</b></div>
                                        )

                                )

                        )

                )

        )

)



Actual result:
--------------
Here's the actual result. NOTE that the "<" and ">" tag characters are
missing near the "This should be bold" text:

Array
(
    [0] => Array
        (
            [name] => OVERLAYS
            [attrs] => Array
                (
                )

            [children] => Array
                (
                    [0] => Array
                        (
                            [name] => OVERLAY
                            [attrs] => Array
                                (
                                )

                            [children] => Array
                                (
                                    [0] => Array
                                        (
                                            [name] => NAME
                                            [attrs] => Array
                                                (
                                                )

                                            [tagData] => Test
                                        )

                                    [1] => Array
                                        (
                                            [name] => TYPE
                                            [attrs] => Array
                                                (
                                                )

                                            [tagData] => template
                                        )

                                    [2] => Array
                                        (
                                            [name] => SYNTAX
                                            [attrs] => Array
                                                (
                                                )

                                            [tagData] => div id=quotebThis
should be bold/b/div
                                        )

                                )

                        )

                )

        )

)



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

Reply via email to