From:             
Operating system: 
PHP version:      5.3.6
Package:          *XML functions
Bug Type:         Bug
Bug description:XML Error in 5.3.6

Description:
------------
---
>From manual page: http://www.php.net/function.xml-parse%23Description
---
We migrate from 5.2 to 5.3 and gives a error:
Parser error #73: > required on line 6, column 14.

Test script:
---------------
PHP
-----------------------------------------
                $this->_parserMemory = array();
                $parser = xml_parser_create('UTF-8');
                
                xml_set_object($parser, $this);
                xml_parser_set_option($parser, XML_OPTION_SKIP_WHITE, 1);
                xml_parser_set_option($parser, XML_OPTION_CASE_FOLDING, 0);
                xml_parser_set_option($parser, XML_OPTION_TARGET_ENCODING, 
'UTF-8');            
                xml_set_element_handler($parser, "_xmlTagOpen", "_xmlTagClose");
                xml_set_character_data_handler($parser, "_xmlCdata");
                
                if (!xml_parse($parser, $xml)) {
                        $this->_children = array();
                        $error_code = xml_get_error_code($parser);
                        $error_string = xml_error_string($error_code);
                        $current_line = xml_get_current_line_number($parser);
                        $current_column = 
xml_get_current_column_number($parser);
                        
                        throw new Idify_FileHandler_Xml_Exception("In 
{$this->_filename} :
Parser error #{$error_code}: {$error_string} on line {$current_line},
column {$current_column}.");
                }
                
                unset($this->_parserMemory);
                xml_parser_free($parser);

----------------------------------------
XML
----------------------------------------
<simplexml>
        <name>PageControl</name>
        <title>Paginabeheer</title>
        <version>1.0.0</version>
        <cms_routes>
                <index type="default" inMenu="true" authlevel="50">
                        <title>Overzicht</title>
                        <parts>
                                <part>pagecontrol</part>
                                <part>*</part>
                

Expected result:
----------------
No error, system gives a new error on a attribute. Exact xml in 5.2 and
5.3, but 
in 5.3, he gives a error on a attribute.

And gives a error on: <?xml version="1.0"?>, when I remove this line the
error 
disapear


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

Reply via email to