- fix year in copyrights notices
[plcapi.git] / NEWS
1 XML-RPC for PHP version 2.2.2 - 2009/03/16\r
2 \r
3 This release corrects all bugs that have been reported and sucesfully reproduced since\r
4 version 2.2.1.\r
5 Regardless of the intimitading message about dropping PHP 4 support, it still does\r
6 support that ancient, broken and insecure platform.\r
7 \r
8 * fixed: php warning when receiving 'false' in a bool value\r
9 * fixed: improve robustness of the debugger when parsing weird results from non-compliant servers\r
10 * fixed: format floating point values using the correct decimal separator even when php locale is set to one that uses comma\r
11 * fixed: use feof() to test if socket connections are to be closed instead of the number of bytes read (rare bug when communicating with some servers)\r
12 * fixed: be more tolerant in detection of charset in http headers\r
13 * fixed: fix encoding of UTF8 chars outside of the BMP plane\r
14 * fixed: fix detection of zlib.output_compression\r
15 * improved: allow the add_to_map server method to add docs for single params too\r
16 * improved: added the possibility to wrap for exposure as xmlrpc        methods plain php class methods, object methods and even whole classes\r
17 \r
18 \r
19 XML-RPC for PHP version 2.2.1 - 2008/03/06\r
20 \r
21 This release corrects all bugs that have been reported and sucesfully reproduced.\r
22 It is the last release of the library that will support PHP 4.\r
23 \r
24 * fixed: work aroung bug in php 5.2.2 which broke support of HTTP_RAW_POST_DATA\r
25 * fixed: is_dir parameter of setCaCertificate() method is reversed\r
26 * fixed: a php warning in xmlrpc_client creator method\r
27 * fixed: parsing of '1e+1' as valid float\r
28 * fixed: allow errorlevel 3 to work when prev. error handler was a static method\r
29 * fixed: usage of client::setcookie() for multiple cookies in non-ssl mode\r
30 * improved: support for CP1252 charset is not part or the library but almost possible\r
31 * improved: more info when curl is enabled and debug mode is on\r
32 \r
33 \r
34 XML-RPC for PHP version 2.2 - 2007/02/25\r
35 \r
36 This release corrects a couple of bugs and adds a few minor features.\r
37 \r
38 * fixed: debugger errors on php installs with magic_quotes_gpc on\r
39 * fixed: support for https connections via proxy\r
40 * fixed: wrap_xmlrpc_method() generated code failed to properly encode php objects\r
41 * improved: slightly faster encoding of data which is internally UTF-8\r
42 * improved: debugger always generates a 'null' id for jsonrpc if user omits it\r
43 * new: debugger can take advantage of a graphical value builder\r
44   (it has to be downloaded separately, as part of jsxmlrpc package)\r
45 * new: support for the <NIL/> xmlrpc extension\r
46 * new: server support for the system.getCapabilities xmlrpc extension\r
47 * new: wrap_xmlrpc_method() accepts two new options: debug and return_on_fault\r
48 \r
49 \r
50 XML-RPC for PHP version 2.1 - 2006/08/28\r
51 \r
52 This release corrects quite a few bugs and adds some interesting new features.\r
53 There is a minor security enhancement and overall speedup too.\r
54 \r
55 It has been tested with PHP 4.0.5 up to 4.4.4 and 5.1.5.\r
56 Please note that 404pl1 is NOT supported, and has not been since 2.0.\r
57 \r
58 *** PLASE READ CAREFULLY BELOW ***\r
59 \r
60 CHANGES THAT MIGHT AFFECT DEPLOYED APPLICATIONS:\r
61 \r
62 The wrap_php_function and wrap_xmlrpc_method functions have been moved out of\r
63 the base library file xmlrpc.inc into a file of their own: xmlrpc_wrappers.inc.\r
64 You will have to include() / require() it in your scripts if you have been using\r
65 those functions.\r
66 \r
67 For increased security, the automatic rebuilding of php object instances out of\r
68 received xmlrpc structs in wrap_xmlrpc_method() has been disabled (but it can be\r
69 optionally reenabled).\r
70 \r
71 The constructor of xmlrpcval() values has seen major changes, and it will not\r
72 throw a php warning anymore when invoked using an unknown xmlrpc type: the\r
73 error will only be written to php error log. Also new xmlrpcval('true', 'boolean')\r
74 is not supported anymore.\r
75 \r
76 MAJOR IMPROVEMENTS:\r
77 \r
78 The new function php_xmlrpc_decode_xml() will take the xml representation of\r
79 either an xmlrpc request, response or single value and return the corresponding\r
80 php-xmlrpc object instance.\r
81 \r
82 Both wrap_php_function() and wrap_xmlrpc_method() functions accept many more\r
83 options to fine tune their behaviour, including one to return the php code to\r
84 be saved and later used as standalone php script.\r
85 \r
86 A new function wrap_xmlrpc_server() has been added, to wrap all (or some) of the\r
87 methods exposed by a remote xmlrpc server into a php class.\r
88 \r
89 Lib internals have been modified to provide better support for grafting extra\r
90 functionality on top of it. Stay tuned for future releases of the EXTRAS package.\r
91 \r
92 Last but not least a new file has been added: verify_compat.php, to help users\r
93 diagnose the level of compliance of the current php install with the library.\r
94 \r
95 CHANGELOG IN DETAIL:\r
96 \r
97 * fixed bug 1311927: client not playing nice with some proxy/firewall on ports != 80\r
98 * fixed bug 1334340: all ereg_ functions have been replaced with corresponding preg_\r
99 * fixed bug: wrong handling of 'deflate' http encoding, both server and client side\r
100 * fixed bug: sending compressed responses when php output compression is enabled was not working\r
101 * fixed bug: addarray() and addstruct() where not returning 1 when adding data to already initialized values\r
102 * fixed bug: non-ascii chars used in struct element names where not being encoded correctly\r
103 * restored compatibility with php 4.0.5 (for those poor souls still stuck on it)\r
104 * server->service() now returns either the payload or xmlrpcresp instance\r
105 * server->add_to_map() now accepts methods with no param definitions\r
106 * added new function: php_xmlrpc_decode_xml()\r
107 * added new function: wrap_xmlrpc_server()\r
108 * major improvements and security enhancements to wrap_php_function() and wrap_xmlrpc_method()\r
109 * documentation for single parameters of exposed methods can be added to the dispatch map\r
110   (and turned into html docs in conjunction with a future release of the extras package)\r
111 * full response payload is saved into xmlrpcresp object for further debugging\r
112 * stricter parsing of incmoing xmlrpc messages: two more invalid cases are now detected\r
113   (double data element inside array and struct/array after scalar inside value element)\r
114 * debugger can now generate code that wraps a remote method into php function (works for jsonrpc, too)\r
115 * debugger has better support for being activated via a single GET call (for integration into other tools?)\r
116 * more logging of errors in a lot of situations\r
117 * javadoc documentation of lib files almost complete\r
118 * the usual amount of new testcases in the testsuite\r
119 * many performance tweaks and code cleanups\r
120 * added foundation for emulating the API of the xmlrpc extension (extras package needed)\r
121 \r
122 \r
123 XML-RPC for PHP version 2.0 - 2006/04/24\r
124 \r
125 I'm pleased to announce XML-RPC for PHP version 2.0, final.\r
126 \r
127 With respect to the last release candidate, this release corrects a few small\r
128 bugs and adds a couple of new features: more authentication options (digest and\r
129 ntlm for servers, ntlm for proxies, and some https custom certificates stuff);\r
130 all the examples have been reviewed and some demo files added,\r
131 including a ready-made xmlrpc proxy (useful e.g. for ajax calls, when the xmlrpc\r
132 client is a browser); the server logs more warning messages for incorrect situations;\r
133 both client and server are more tolerant of commonly-found mistakes.\r
134 The debugger has been upgraded to reflect the new client capabilities.\r
135 \r
136 In greater detail:\r
137 \r
138 * fixed bug: method xmlrpcval::structmemexists($value) would not work\r
139 * fixed bug: wrap_xmlrpc_method would fail if invoked with a client object that\r
140   has return_type=phpvals\r
141 * fixed bug: in case of call to client::multicall without fallback and server error\r
142 * fixed bug: recursive serialization of xmlrpcvals loosing specified UTF8 charset\r
143 * fixed bug: serializing to ISO-8859-1 with php 5 would raise an error if non-ascii\r
144   chars where found when decoding\r
145 * new: client can use NTLM and Digest authentication methods for https and http 1.1\r
146   connections; authentication to proxy can be set to NTLM, too\r
147 * new: server tolerates user functions returning a single xmlrpcval object instead\r
148   of an xmlrpcresp\r
149 * new: server does more checks for presence and correct return type of user\r
150   coded method handling functions, and logs inconsistencies to php error log\r
151 * new: client method SetCaCertificate($cert, $is_dir) to validate server against\r
152 * new: both server and client tolerate receiving 'true' and 'false' for bool values\r
153   (which btw are not valid according to the xmlrpc spec)\r
154 \r
155 \r
156 XML-RPC for PHP version 2.0RC3 - 2006/01/22\r
157 \r
158 This release corrects a few bugs and adds some interesting new features.\r
159 It has been tested with PHP up to 4.4.2 and 5.1.2.\r
160 \r
161 * fixed bug: server not recognizing clients that declare support for http compression\r
162 * fixed bug: serialization of new xmlrpcval (8, 'string') when internal encoding\r
163   set to UTF-8\r
164 * fixed bug: serialization of new xmlrpcval ('hello', 'int') would produce\r
165   invalid xml-rpc\r
166 * new: let the server accept 'class::method' syntax in the dispatch map\r
167 * new: php_xmlrpc_decode() can decode xmlrpcmessage objects\r
168 * new: both client and server can specify a charset to be used for serializing\r
169   values instead of the default 'US-ASCII+xml-entities-for-other-characters'.\r
170   Values allowed: ISO-8859-1 and UTF-8\r
171 * new: the server object can register 'plain' php functions instead of functions\r
172   that accept a single parameter of type xmlrpcmsg. Faster, uses less memory\r
173   (but comes with minor drawbacks as well, read the manual for more details)\r
174 * new: client::setDebug(2) can be used to have the request payload printed to\r
175   screen before being sent\r
176 * new: server::service($data) lets user parse data other than POST body, for\r
177   easier testing / subclassing\r
178 * changed: framework-generated debug messages are sent back by the server base64\r
179   encoded, to avoid any charset/xml compatibility problem\r
180 * other minor fixes\r
181 \r
182 The usual refactoring of a lot of (private) methods has taken place, with new\r
183 parameters added to some functions.\r
184 Javadoc documentation has been improved a lot.\r
185 The HTML documentation has been shuffled around a bit, hoping to give it a more\r
186 logical organization.\r
187 \r
188 The experimental support for the JSON protocol has been removed, and will be\r
189 packaged as a separate download with some extra very interesting stuff (human\r
190 readable auto-generated documentation, anyone?).\r
191 \r
192 \r
193 XML-RPC for PHP version 2.0RC2 - 2005/11/22\r
194 \r
195 This release corrects a few bugs and adds basically one new method for better\r
196 HTTPS support:\r
197 \r
198  * fixed two bugs that prevented xmlrpc calls to take place over https\r
199  * fixed two bugs that prevented proper recognition of xml character set\r
200    when it was declared inside the xml prologue\r
201  * added xmlrpc_client::setKey($key, $keypass) method, to allow using client\r
202    side certificates for https connections\r
203  * fixed bug that prevented proper serialization of string xmlrpcvals when\r
204    $xmlrpc_internalencoding was set to UTF-8\r
205  * fixed bug in xmlrpc_server::echoInput() (and marked method as deprecated)\r
206  * correctly set cookies/http headers into xmlrpcresp objects even when the\r
207    sned() method call fails for some reason\r
208  * added a benchmark file in the testsuite directory\r
209 \r
210 A couple of (private/protected) methods have been refactored, as well as a\r
211 couple of extra parameters added to some (private) functions - this has no\r
212 impact on the public API and should be of interest primarily to people extending\r
213 / subclassing the lib.\r
214 \r
215 There is also new, PARTIAL support for the JSON-RPC protocol, implemented in\r
216 two files in the extras dir (more info about json-rpc at http://json-rpc.org)\r
217 \r
218 \r
219 XML-RPC for PHP version 2.0RC1 - 2005/10/03\r
220 \r
221 I'm pleased to announce XML-RPC for PHP version 2.0, release candidate 1.\r
222 \r
223 This release introduces so many new features it is almost impossible to list them\r
224 here, making the library finally on pair with, if not more advanced than, any other\r
225 similar offer (e.g. the PEAR XMLRPC package or the Incutio IXR library).\r
226 No, really, trust me.\r
227 \r
228 The minimum supported PHP version is now 4.2 - natively - or 4.0.4pl1 - by usage of\r
229 a couple of compatibility classes (code taken from PEAR php_compat package).\r
230 \r
231 The placement of files and directories in the distribution has been deeply modified,\r
232 in the hope of making it more clear, now that the file count has increased.\r
233 I hope you find it easy.\r
234 \r
235 Support for "advanced" HTTP features such as cookies, proxies and keep-alives has\r
236 been added at last.\r
237 \r
238 It is now much easier to convert between xmlrpcval objects and php values, and\r
239 in fact php_xmlrpc_encode and php_xmlrpc_decode are now the recommended methods\r
240 for all cases, except when encoding base64 data.\r
241 \r
242 Two new (experimental) functions have been added, allowing automagic conversion\r
243 of a php function into an xmlrpc method to be exposed and vice-versa.\r
244 \r
245 PHP objects can be now automatically serialized as xmlrpc struct values and\r
246 correctly deserialized on the other end of the transmission, provided that the\r
247 same class definition is present on both sides and no object members are of\r
248 type resource.\r
249 \r
250 A lot of the existing class methods have been overloaded with extra parameters\r
251 or new functionality, and a few added ex-novo, making usage easier than ever.\r
252 \r
253 A complete debugger solution is included in the distribution. It needs a web server\r
254 to run (a freely available version of the same debugger is accessible online, it\r
255 can be found at http://phpxmlrpc.sourceforge.net).\r
256 \r
257 For a more detailed list of changes, please read carefully chapter 2 of the\r
258 included documentation, or, even better, take a look at the source code, which\r
259 is commented in javadoc style quite a bit.\r
260 \r
261 \r
262 XML-RPC for PHP version 1.2 - 2005/08/14\r
263 \r
264 This removes all use of eval(), which is a potential security problem.\r
265 All users are encouraged to upgrade as soon as possible.\r
266 As of this release we are no longer php3-compatible.\r
267 \r
268 \r
269 XML-RPC for PHP version 1.1.1 - 2005/06/30\r
270 \r
271 This is a security vulnerability fix release.\r
272 All users are invited to upgrade as soon as possible.\r
273 \r
274 \r
275 XML-RPC for PHP version 1.1 - 2005/05/03\r
276 \r
277 I'm pleased to announce XML-RPC for PHP version 1.1\r
278 It's taken two years to get to the this point, but here we are, finally.\r
279 \r
280 This is a bugfix and maintenance release. No major new features have been added.\r
281 All known bugs have been ironed out, unless fixing would have meant breaking\r
282 the API.\r
283 The code has been tested with PHP 3, 4 and 5, even tough PHP 4 is the main\r
284 development platform (and some warnings will be emitted when runnning PHP5).\r
285 \r
286 Notheworthy changes include:\r
287 \r
288  * do not clash any more with the EPI xmlrpc extension bundled with PHP 4 and 5\r
289  * fixed the unicode/charset problems that have been plaguing the lib for years\r
290  * proper parsing of int and float values prepended with zeroes or the '+' char\r
291  * accept float values in exponential notation\r
292  * configurable http user-agent string\r
293  * use the same timeout on client socket reads as used for connecting\r
294  * more explicative error messages in xmlrpcresponse in many cases\r
295  * much more tolerant parsing of malformed http responses from xmlrpc servers\r
296  * fixed memleak that prevented the client to be used in never-ending scripts\r
297  * parse bigger xmlrpc messages without crashing (1MB in size or more)\r
298  * be tolerant to xmlrpc responses generated on public servers that add\r
299    javascript advertising at the end of hosted content\r
300  * the lib generates quite a few less PHP warnings during standard operation\r
301 \r
302 This is the last release that will support PHP 3.\r
303 The next release will include better support for PHP 5 and (possibly) a slew of\r
304 new features.\r
305 \r
306 The changelog is available at:\r
307 http://cvs.sourceforge.net/viewcvs.py/phpxmlrpc/xmlrpc/ChangeLog?view=markup\r
308 \r
309 Please report bugs to the XML-RPC PHP mailing list or to the sourceforge project\r
310 pages at http://sourceforge.net/projects/phpxmlrpc/\r