| Línea 660... |
Línea 660... |
| 660 |
// forget old data...
|
660 |
// forget old data...
|
| 661 |
unset($this->_lock[$this->_parserid]);
|
661 |
unset($this->_lock[$this->_parserid]);
|
| 662 |
unset($this->_xmltree[$this->_parserid]);
|
662 |
unset($this->_xmltree[$this->_parserid]);
|
| 663 |
xml_parser_set_option($this->_parser,XML_OPTION_SKIP_WHITE,0);
|
663 |
xml_parser_set_option($this->_parser,XML_OPTION_SKIP_WHITE,0);
|
| 664 |
xml_parser_set_option($this->_parser,XML_OPTION_CASE_FOLDING,0);
|
664 |
xml_parser_set_option($this->_parser,XML_OPTION_CASE_FOLDING,0);
|
| 665 |
xml_set_object($this->_parser, $this);
|
- |
|
| 666 |
xml_set_element_handler($this->_parser, "_lock_startElement", "_endElement");
|
665 |
xml_set_element_handler($this->_parser, [$this, "_lock_startElement"], [$this, "_endElement"]);
|
| 667 |
xml_set_character_data_handler($this->_parser, "_lock_cdata");
|
666 |
xml_set_character_data_handler($this->_parser, [$this, "_lock_cdata"]);
|
| Línea 668... |
Línea 667... |
| 668 |
|
667 |
|
| 669 |
if (!xml_parse($this->_parser, $response['body'])) {
|
668 |
if (!xml_parse($this->_parser, $response['body'])) {
|
| 670 |
die(sprintf("XML error: %s at line %d",
|
669 |
die(sprintf("XML error: %s at line %d",
|
| 671 |
xml_error_string(xml_get_error_code($this->_parser)),
|
670 |
xml_error_string(xml_get_error_code($this->_parser)),
|
| Línea 758... |
Línea 757... |
| 758 |
// forget old data...
|
757 |
// forget old data...
|
| 759 |
unset($this->_delete[$this->_parserid]);
|
758 |
unset($this->_delete[$this->_parserid]);
|
| 760 |
unset($this->_xmltree[$this->_parserid]);
|
759 |
unset($this->_xmltree[$this->_parserid]);
|
| 761 |
xml_parser_set_option($this->_parser,XML_OPTION_SKIP_WHITE,0);
|
760 |
xml_parser_set_option($this->_parser,XML_OPTION_SKIP_WHITE,0);
|
| 762 |
xml_parser_set_option($this->_parser,XML_OPTION_CASE_FOLDING,0);
|
761 |
xml_parser_set_option($this->_parser,XML_OPTION_CASE_FOLDING,0);
|
| 763 |
xml_set_object($this->_parser, $this);
|
- |
|
| 764 |
xml_set_element_handler($this->_parser, "_delete_startElement", "_endElement");
|
762 |
xml_set_element_handler($this->_parser, [$this, "_delete_startElement"], [$this, "_endElement"]);
|
| 765 |
xml_set_character_data_handler($this->_parser, "_delete_cdata");
|
763 |
xml_set_character_data_handler($this->_parser, [$this, "_delete_cdata"]);
|
| Línea 766... |
Línea 764... |
| 766 |
|
764 |
|
| 767 |
if (!xml_parse($this->_parser, $response['body'])) {
|
765 |
if (!xml_parse($this->_parser, $response['body'])) {
|
| 768 |
die(sprintf("XML error: %s at line %d",
|
766 |
die(sprintf("XML error: %s at line %d",
|
| 769 |
xml_error_string(xml_get_error_code($this->_parser)),
|
767 |
xml_error_string(xml_get_error_code($this->_parser)),
|
| Línea 851... |
Línea 849... |
| 851 |
unset($this->_ls[$this->_parserid]);
|
849 |
unset($this->_ls[$this->_parserid]);
|
| 852 |
unset($this->_xmltree[$this->_parserid]);
|
850 |
unset($this->_xmltree[$this->_parserid]);
|
| 853 |
xml_parser_set_option($this->_parser,XML_OPTION_SKIP_WHITE,0);
|
851 |
xml_parser_set_option($this->_parser,XML_OPTION_SKIP_WHITE,0);
|
| 854 |
xml_parser_set_option($this->_parser,XML_OPTION_CASE_FOLDING,0);
|
852 |
xml_parser_set_option($this->_parser,XML_OPTION_CASE_FOLDING,0);
|
| 855 |
// xml_parser_set_option($this->_parser,XML_OPTION_TARGET_ENCODING,'UTF-8');
|
853 |
// xml_parser_set_option($this->_parser,XML_OPTION_TARGET_ENCODING,'UTF-8');
|
| 856 |
xml_set_object($this->_parser, $this);
|
- |
|
| 857 |
xml_set_element_handler($this->_parser, "_propfind_startElement", "_endElement");
|
854 |
xml_set_element_handler($this->_parser, [$this, "_propfind_startElement"], [$this, "_endElement"]);
|
| 858 |
xml_set_character_data_handler($this->_parser, "_propfind_cdata");
|
855 |
xml_set_character_data_handler($this->_parser, [$this, "_propfind_cdata"]);
|
| Línea 859... |
Línea 856... |
| 859 |
|
856 |
|
| 860 |
|
857 |
|
| 861 |
if (!xml_parse($this->_parser, $response['body'])) {
|
858 |
if (!xml_parse($this->_parser, $response['body'])) {
|