@@ 219-228 (lines=10) @@ | ||
216 | case 'BOOLEAN': |
|
217 | case 'DOUBLE': |
|
218 | case 'DATETIME.ISO8601': |
|
219 | case 'BASE64': |
|
220 | if ($this->_xh['vt'] != 'value') { |
|
221 | // two data elements inside a value: an error occurred! |
|
222 | $this->_xh['isf'] = 2; |
|
223 | $this->_xh['isf_reason'] = "$name element following a {$this->_xh['vt']} element inside a single value"; |
|
224 | ||
225 | return; |
|
226 | } |
|
227 | $this->_xh['ac'] = ''; // reset the accumulator |
|
228 | break; |
|
229 | case 'STRUCT': |
|
230 | case 'ARRAY': |
|
231 | if ($this->_xh['vt'] != 'value') { |
|
@@ 281-292 (lines=12) @@ | ||
278 | $this->_xh['vt'] = null; |
|
279 | break; |
|
280 | case 'NIL': |
|
281 | case 'EX:NIL': |
|
282 | if (PhpXmlRpc::$xmlrpc_null_extension) { |
|
283 | if ($this->_xh['vt'] != 'value') { |
|
284 | // two data elements inside a value: an error occurred! |
|
285 | $this->_xh['isf'] = 2; |
|
286 | $this->_xh['isf_reason'] = "$name element following a {$this->_xh['vt']} element inside a single value"; |
|
287 | ||
288 | return; |
|
289 | } |
|
290 | $this->_xh['ac'] = ''; // reset the accumulator |
|
291 | break; |
|
292 | } |
|
293 | // we do not support the <NIL/> extension, so |
|
294 | // drop through intentionally |
|
295 | default: |