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