|
@@ 583-599 (lines=17) @@
|
| 580 |
|
$GLOBALS['_xh']['value'] = $temp;
|
| 581 |
|
}
|
| 582 |
|
}
|
| 583 |
|
else
|
| 584 |
|
{
|
| 585 |
|
/// @todo this needs to treat correctly php-serialized objects,
|
| 586 |
|
/// since std deserializing is done by php_xmlrpc_decode,
|
| 587 |
|
/// which we will not be calling...
|
| 588 |
|
if (isset($GLOBALS['_xh']['php_class']))
|
| 589 |
|
{
|
| 590 |
|
}
|
| 591 |
|
|
| 592 |
|
// check if we are inside an array or struct:
|
| 593 |
|
// if value just built is inside an array, let's move it into array on the stack
|
| 594 |
|
$vscount = count($GLOBALS['_xh']['valuestack']);
|
| 595 |
|
if ($vscount && $GLOBALS['_xh']['valuestack'][$vscount-1]['type']=='ARRAY')
|
| 596 |
|
{
|
| 597 |
|
$GLOBALS['_xh']['valuestack'][$vscount-1]['values'][] = $GLOBALS['_xh']['value'];
|
| 598 |
|
}
|
| 599 |
|
}
|
| 600 |
|
break;
|
| 601 |
|
case 'BOOLEAN':
|
| 602 |
|
case 'I4':
|
|
@@ 692-697 (lines=6) @@
|
| 689 |
|
//$GLOBALS['_xh']['ac']=''; // is this necessary?
|
| 690 |
|
// add to array in the stack the last element built,
|
| 691 |
|
// unless no VALUE was found
|
| 692 |
|
if ($GLOBALS['_xh']['vt'])
|
| 693 |
|
{
|
| 694 |
|
$vscount = count($GLOBALS['_xh']['valuestack']);
|
| 695 |
|
$GLOBALS['_xh']['valuestack'][$vscount-1]['values'][$GLOBALS['_xh']['valuestack'][$vscount-1]['name']] = $GLOBALS['_xh']['value'];
|
| 696 |
|
} else
|
| 697 |
|
error_log('XML-RPC: missing VALUE inside STRUCT in received xml');
|
| 698 |
|
break;
|
| 699 |
|
case 'DATA':
|
| 700 |
|
//$GLOBALS['_xh']['ac']=''; // is this necessary?
|