This repository has been archived on 2024-11-28. You can view files and clone it, but cannot push or open issues or pull requests.
Incam_SGD/thirdparty/xmlrpc-2.2/doc/ch02s02.html

3 lines
5.1 KiB
HTML
Raw Normal View History

<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>2.&nbsp;2.1</title><link rel="stylesheet" href="html.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.71.1"><link rel="start" href="index.html" title="XML-RPC for PHP"><link rel="up" href="ch02.html" title="Chapter&nbsp;2.&nbsp;What's new"><link rel="prev" href="ch02s01.html" title="1.&nbsp;2.2"><link rel="next" href="ch02s03.html" title="3.&nbsp;2.0 final"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">2.&nbsp;2.1</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="ch02s01.html">Prev</a>&nbsp;</td><th width="60%" align="center">Chapter&nbsp;2.&nbsp;What's new</th><td width="20%" align="right">&nbsp;<a accesskey="n" href="ch02s03.html">Next</a></td></tr></table><hr></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="d0e200"></a>2.&nbsp;2.1</h2></div></div></div><div class="itemizedlist"><ul type="disc"><li><p>The <code class="function">wrap_php_function</code> and <code class="function">wrap_xmlrpc_method</code> functions have been moved out of the base library file <code class="filename">xmlrpc.inc</code> into a file of their own: <code class="filename">xmlrpc_wrappers.inc</code>. You will have to include() / require() it in your scripts if you have been using those functions. For increased security, the automatic rebuilding of php object instances out of received xmlrpc structs in <code class="function">wrap_xmlrpc_method()</code> has been disabled (but it can be optionally re-enabled). Both <code class="function">wrap_php_function()</code> and <code class="function">wrap_xmlrpc_method()</code> functions accept many more options to fine tune their behaviour, including one to return the php code to be saved and later used as standalone php script</p></li><li><p>The constructor of xmlrpcval() values has seen some internal changes, and it will not throw a php warning anymore when invoked using an unknown xmlrpc type: the error will only be written to php error log. Also <code class="code">new xmlrpcval('true', 'boolean')</code> is not supported anymore</p></li><li><p>The new function <code class="function">php_xmlrpc_decode_xml()</code> will take the xml representation of either an xmlrpc request, response or single value and return the corresponding php-xmlrpc object instance</p></li><li><p>A new function <code class="function">wrap_xmlrpc_server()</code>has been added, to wrap all (or some) of the methods exposed by a remote xmlrpc server into a php class</p></li><li><p>A new file has been added: <code class="filename">verify_compat.php</code>, to help users diagnose the level of compliance of their php installation with the library</p></li><li><p>Restored compatibility with php 4.0.5 (for those poor souls still stuck on it)</p></li><li><p>Method <code class="methodname">xmlrpc_server-&gt;service()</code> now returns a value: either the response payload or xmlrpcresp object instance</p></li><li><p>Method <code class="methodname">xmlrpc_server-&gt;add_to_map()</code> now accepts xmlrpc methods with no param definitions</p></li><li><p>Documentation for single parameters of exposed methods can be added to the dispatch map (and turned into html docs in conjunction with a future release of the 'extras' package)</p></li><li><p>Full response payload is saved into xmlrpcresp object for further debugging</p></li><li><p>The debugger can now generate code that wraps a remote method into a php function (works for jsonrpc, too); it also has better support for being activated via a single GET call (e.g. for integration into other tools)</p></li><li><p>Stricter parsing of incoming xmlrpc messages: two more invalid cases are now detected (double <code class="literal">data</code> element inside <code class="literal">array</code> and <code class="literal">struct</code>/<code class="literal">array</code> after scalar inside <code class="literal">value</code> element)</p></li><l