| @@ 441-450 (lines=10) @@ | ||
| 438 | case 'BOOLEAN': |
|
| 439 | case 'DOUBLE': |
|
| 440 | case 'DATETIME.ISO8601': |
|
| 441 | case 'BASE64': |
|
| 442 | if ($GLOBALS['_xh']['vt']!='value') |
|
| 443 | { |
|
| 444 | //two data elements inside a value: an error occurred! |
|
| 445 | $GLOBALS['_xh']['isf'] = 2; |
|
| 446 | $GLOBALS['_xh']['isf_reason'] = "$name element following a {$GLOBALS['_xh']['vt']} element inside a single value"; |
|
| 447 | return; |
|
| 448 | } |
|
| 449 | $GLOBALS['_xh']['ac']=''; // reset the accumulator |
|
| 450 | break; |
|
| 451 | case 'STRUCT': |
|
| 452 | case 'ARRAY': |
|
| 453 | if ($GLOBALS['_xh']['vt']!='value') |
|
| @@ 503-515 (lines=13) @@ | ||
| 500 | $GLOBALS['_xh']['vt']=null; |
|
| 501 | break; |
|
| 502 | case 'NIL': |
|
| 503 | case 'EX:NIL': |
|
| 504 | if ($GLOBALS['xmlrpc_null_extension']) |
|
| 505 | { |
|
| 506 | if ($GLOBALS['_xh']['vt']!='value') |
|
| 507 | { |
|
| 508 | //two data elements inside a value: an error occurred! |
|
| 509 | $GLOBALS['_xh']['isf'] = 2; |
|
| 510 | $GLOBALS['_xh']['isf_reason'] = "$name element following a {$GLOBALS['_xh']['vt']} element inside a single value"; |
|
| 511 | return; |
|
| 512 | } |
|
| 513 | $GLOBALS['_xh']['ac']=''; // reset the accumulator |
|
| 514 | break; |
|
| 515 | } |
|
| 516 | // we do not support the <NIL/> extension, so |
|
| 517 | // drop through intentionally |
|
| 518 | default: |
|