| Response | getPayload | |
| Response | valueType | |
| Response | xml_header | |
+| Server | addToMap | |
| Server | getOption | |
| Server | getOptions | |
| Server | setDispatchMap | |
The following methods have modified their return value
-| Class | Method | Notes |
-|-----------|----------------|---------|
-| Client | _try_multicall | private |
+| Class | Method | Notes |
+|-----------|----------------|-------------------------------------|
+| Client | _try_multicall | private |
+| XMLParser | parse | was: return void, now returns array |
Deprecated methods
------------------
The following properties have now protected access. Replacement accessor for public use are listed.
-| Class | Property | Read via | Write via |
-|----------|----------------------------|------------------------|----------------------------------|
-| Client | accepted_charset_encodings | getOption | setOption |
-| Client | accepted_compression | getOption | setOption/setAcceptedCompression |
-| Client | authtype | getOption | setOption/setCredentials |
-| Client | cacert | getOption | setOption/setCaCertificate |
-| Client | cacertdir | getOption | setOption/setCaCertificate |
-| Client | cert | getOption | setOption/setCertificate |
-| Client | certpass | getOption | setOption/setCertificate |
-| Client | cookies | getOption | setOption |
-| Client | debug | getOption | setOption/setDebug |
-| Client | errno | - | - |
-| Client | errstr | - | - |
-| Client | extracurlopts | getOption | setOption |
-| Client | keepalive | getOption | setOption |
-| Client | key | getOption | setOption/setKey |
-| Client | keypass | getOption | setOption/setKey |
-| Client | method | getUrl | __construct |
-| Client | no_multicall | getOption | setOption |
-| Client | password | getOption | setOption/setCredentials |
-| Client | path | getUrl | __construct |
-| Client | port | getUrl | __construct |
-| Client | proxy | getOption | setOption/setProxy |
-| Client | proxy_authtype | getOption | setOption/setProxy |
-| Client | proxy_pass | getOption | setOption/setProxy |
-| Client | proxy_user | getOption | setOption/setProxy |
-| Client | proxyport | getOption | setOption/setProxy |
-| Client | request_charset_encoding | getOption | setOption |
-| Client | request_compression | getOption | setOption |
-| Client | return_type | getOption | setOption |
-| Client | server | getUrl | __construct |
-| Client | sslversion | getOption | setOption |
-| Client | use_curl | getOption | setOption |
-| Client | user_agent | getOption | setOption |
-| Client | username | getOption | setOption/setCredentials |
-| Client | verifyhost | getOption | setOption |
-| Client | verifypeer | getOption | setOption |
-| Request | content_type | getContentType | setPayload |
-| Request | debug | setDebug | - |
-| Request | methodname | method | __construct/method |
-| Request | params | getParam | __construct/addParam |
-| Request | payload | getPayload | setPayload |
-| Response | val | value | __construct |
-| Response | valtyp | valueType | __construct |
-| Response | errno | faultCode | __construct |
-| Response | errstr | faultString | __construct |
-| Response | content_type | getContentType | setPayload |
-| Response | payload | getPayload | setPayload |
-| Server | accepted_charset_encodings | - | - |
-| Server | accepted_compression | getOption | setOption |
-| Server | allow_system_funcs | getOption | setOption |
-| Server | compress_response | getOption | setOption |
-| Server | debug | getOption | setOption/setDebug |
-| Server | exception_handling | getOption | setOption |
-| Server | functions_parameters_type | getOption | setOption |
-| Server | phpvals_encoding_options | getOption | setOption |
-| Server | response_charset_encoding | getOption | setOption |
-| Value | _php_class | - | - |
-| Value | me | scalarVal/array access | __construct |
-| Value | mytype | kindOf | __construct |
-| Wrapper | $objectholder | getHeldObject | holdObject |
+| Class | Property | Read via | Write via |
+|-----------|----------------------------|------------------------|----------------------------------|
+| Client | accepted_charset_encodings | getOption | setOption |
+| Client | accepted_compression | getOption | setOption/setAcceptedCompression |
+| Client | authtype | getOption | setOption/setCredentials |
+| Client | cacert | getOption | setOption/setCaCertificate |
+| Client | cacertdir | getOption | setOption/setCaCertificate |
+| Client | cert | getOption | setOption/setCertificate |
+| Client | certpass | getOption | setOption/setCertificate |
+| Client | cookies | getOption | setOption |
+| Client | debug | getOption | setOption/setDebug |
+| Client | errno | - | - |
+| Client | errstr | - | - |
+| Client | extracurlopts | getOption | setOption |
+| Client | keepalive | getOption | setOption |
+| Client | key | getOption | setOption/setKey |
+| Client | keypass | getOption | setOption/setKey |
+| Client | method | getUrl | __construct |
+| Client | no_multicall | getOption | setOption |
+| Client | password | getOption | setOption/setCredentials |
+| Client | path | getUrl | __construct |
+| Client | port | getUrl | __construct |
+| Client | proxy | getOption | setOption/setProxy |
+| Client | proxy_authtype | getOption | setOption/setProxy |
+| Client | proxy_pass | getOption | setOption/setProxy |
+| Client | proxy_user | getOption | setOption/setProxy |
+| Client | proxyport | getOption | setOption/setProxy |
+| Client | request_charset_encoding | getOption | setOption |
+| Client | request_compression | getOption | setOption |
+| Client | return_type | getOption | setOption |
+| Client | server | getUrl | __construct |
+| Client | sslversion | getOption | setOption |
+| Client | use_curl | getOption | setOption |
+| Client | user_agent | getOption | setOption |
+| Client | username | getOption | setOption/setCredentials |
+| Client | verifyhost | getOption | setOption |
+| Client | verifypeer | getOption | setOption |
+| Request | content_type | getContentType | setPayload |
+| Request | debug | setDebug | - |
+| Request | methodname | method | __construct/method |
+| Request | params | getParam | __construct/addParam |
+| Request | payload | getPayload | setPayload |
+| Response | val | value | __construct |
+| Response | valtyp | valueType | __construct |
+| Response | errno | faultCode | __construct |
+| Response | errstr | faultString | __construct |
+| Response | content_type | getContentType | setPayload |
+| Response | payload | getPayload | setPayload |
+| Server | accepted_charset_encodings | - | - |
+| Server | accepted_compression | getOption | setOption |
+| Server | allow_system_funcs | getOption | setOption |
+| Server | compress_response | getOption | setOption |
+| Server | debug | getOption | setOption/setDebug |
+| Server | exception_handling | getOption | setOption |
+| Server | functions_parameters_type | getOption | setOption |
+| Server | phpvals_encoding_options | getOption | setOption |
+| Server | response_charset_encoding | getOption | setOption |
+| Value | _php_class | - | - |
+| Value | me | scalarVal/array access | __construct |
+| Value | mytype | kindOf | __construct |
+| Wrapper | $objectholder | getHeldObject | holdObject |
+| XMLParser | $_xh | results of parse() | - |
* pt - used to store the type of each received parameter. Useful if parameters are automatically decoded to php values
* rt - 'methodcall', 'methodresponse', 'value' or 'fault' (the last one used only in EPI emulation mode)
*/
- public $_xh = array(
+ protected $_xh = array(
'ac' => '',
'stack' => array(),
'valuestack' => array(),
* These options are added to options received in the constructor.
* Note that if options xmlrpc_null_extension, xmlrpc_return_datetimes and xmlrpc_reject_invalid_values
* are not set, the default settings from PhpXmlRpc\PhpXmlRpc are used
- * @return void the caller has to look into $this->_xh to find the results
+ * @return array see the definition of $this->_xh for the meaning of the results
* @throws \Exception this can happen if a callback function is set and it does throw (i.e. we do not catch exceptions)
*
* @todo refactor? we could 1. return the parsed data structure, and 2. move $returnType and $accept into options
if ($len == 0) {
$this->_xh['isf'] = 3;
$this->_xh['isf_reason'] = 'XML error 5: empty document';
- return;
+ return $this->_xh;
}
$this->current_parsing_options = array('accept' => $accept);
xml_parser_free($parser);
$this->current_parsing_options = array();
+
+ return $this->_xh;
}
/**
public function &__get($name)
{
switch ($name) {
+ case '_xh':
case 'xmlrpc_valid_parents':
$this->logDeprecation('Getting property XMLParser::' . $name . ' is deprecated');
return $this->$name;
$this->logDeprecation('Setting property XMLParser::' . $name . ' is deprecated');
$this->current_parsing_options['accept'] = $value;
break;
+ case '_xh':
case 'xmlrpc_valid_parents':
$this->logDeprecation('Setting property XMLParser::' . $name . ' is deprecated');
$this->$name = $value;
case 'accept':
$this->logDeprecation('Checking property XMLParser::' . $name . ' is deprecated');
return isset($this->current_parsing_options['accept']);
+ case '_xh':
case 'xmlrpc_valid_parents':
$this->logDeprecation('Checking property XMLParser::' . $name . ' is deprecated');
return isset($this->$name);
$this->logDeprecation('Unsetting property XMLParser::' . $name . ' is deprecated');
unset($this->current_parsing_options['accept']);
break;
+ case '_xh':
case 'xmlrpc_valid_parents':
$this->logDeprecation('Unsetting property XMLParser::' . $name . ' is deprecated');
unset($this->$name);