@@ 108-112 (lines=5) @@ | ||
105 | $len = strlen($data); |
|
106 | ||
107 | // we test for empty documents here to save on resource allocation and simply the chunked-parsing loop below |
|
108 | if ($len == 0) { |
|
109 | $this->_xh['isf'] = 3; |
|
110 | $this->_xh['isf_reason'] = 'XML error 5: empty document'; |
|
111 | return; |
|
112 | } |
|
113 | ||
114 | $parser = xml_parser_create(); |
|
115 | ||
@@ 180-185 (lines=6) @@ | ||
177 | ($name == 'METHODRESPONSE' && ($accept & self::ACCEPT_RESPONSE)) || |
|
178 | ($name == 'VALUE' && ($accept & self::ACCEPT_VALUE))) { |
|
179 | $this->_xh['rt'] = strtolower($name); |
|
180 | } else { |
|
181 | $this->_xh['isf'] = 2; |
|
182 | $this->_xh['isf_reason'] = 'missing top level xmlrpc element. Found: ' . $name; |
|
183 | ||
184 | return; |
|
185 | } |
|
186 | } else { |
|
187 | // not top level element: see if parent is OK |
|
188 | $parent = end($this->_xh['stack']); |