wp/wp-includes/IXR/class-IXR-message.php
changeset 22 8c2e4d02f4ef
parent 21 48c4eec2b7e6
equal deleted inserted replaced
21:48c4eec2b7e6 22:8c2e4d02f4ef
    91 
    91 
    92         $this->_parser = xml_parser_create();
    92         $this->_parser = xml_parser_create();
    93         // Set XML parser to take the case of tags in to account
    93         // Set XML parser to take the case of tags in to account
    94         xml_parser_set_option($this->_parser, XML_OPTION_CASE_FOLDING, false);
    94         xml_parser_set_option($this->_parser, XML_OPTION_CASE_FOLDING, false);
    95         // Set XML parser callback functions
    95         // Set XML parser callback functions
    96         xml_set_object($this->_parser, $this);
    96         xml_set_element_handler($this->_parser, array($this, 'tag_open'), array($this, 'tag_close'));
    97         xml_set_element_handler($this->_parser, 'tag_open', 'tag_close');
    97         xml_set_character_data_handler($this->_parser, array($this, 'cdata'));
    98         xml_set_character_data_handler($this->_parser, 'cdata');
       
    99 
    98 
   100         // 256Kb, parse in chunks to avoid the RAM usage on very large messages
    99         // 256Kb, parse in chunks to avoid the RAM usage on very large messages
   101         $chunk_size = 262144;
   100         $chunk_size = 262144;
   102 
   101 
   103         /**
   102         /**