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