- when using curl and keepalive, reset curl handle if we did not get back an http...
[plcapi.git] / ChangeLog
1 2014-01-10 - G. Giunta (giunta.gaetano@gmail.com)\r
2 \r
3         * xmlrpc.inc: when using curl and keepalive, reset curl handle if we did not get back an http 200 response (eg a 302)\r
4 \r
5 2010-05-23 - G. Giunta (giunta.gaetano@gmail.com)\r
6 \r
7         * xmlrpc.inc: omit port on http 'Host' header if it is 80;\r
8         add a namespace declaration in response if ex:nil is in use\r
9 \r
10 2010-04-12 - G. Giunta (giunta.gaetano@gmail.com)\r
11 \r
12         * testsuite.php, parse_args.php: testsuite allows interrogating https servers ignoring their certs\r
13         * xmlrpc.inc: method setAcceptedCompression was failing to disable reception\r
14         of compressed responses if the client supported them (triggering a bug with\r
15         https and php < 5.3 on windows due); remove a php warning that could be\r
16         generated when using debug=2 in a client connecting to an https\r
17         server\r
18 \r
19 2010-04-11 - G. Giunta (giunta.gaetano@gmail.com) thanks amoe\r
20 \r
21         * fixed: bad variables in "make install" make target\r
22 \r
23 2009-11-11 - G. Giunta (giunta.gaetano@gmail.com) thanks Ikiro Watanabe\r
24 \r
25         * added INSTALL file\r
26 \r
27 2009-09-05 - G. Giunta (giunta.gaetano@gmail.com)\r
28 \r
29         * xmlrpcs.inc, xmlrpcs.inc: remove code that was left for compatibility\r
30         with php 4; use __METHOD__ constant for error messages instead of hardcoded\r
31         values\r
32 \r
33         * xmlrpcs.inc: catch exceptions thrown during execution of invoked methods;\r
34         check for $_SERVER having been disabled via php.ini and log an error if so\r
35 \r
36         * server.php, testsuite.php: add a new test and server method for exception\r
37         catching in the server\r
38 \r
39         * xmlrpc.inc: added new method SetUserAgent to client to allow having different\r
40         user-agent http headers\r
41 \r
42         * tagged and released as 3.0.0 beta\r
43 \r
44 2009-08-05 - G. Giunta (giunta.gaetano@gmail.com)\r
45 \r
46         * xmlrpc_wrappers.inc: improve compatibility with php 5.0 when registering\r
47         class/object methods\r
48 \r
49 2009-08-02 - G. Giunta (giunta.gaetano@gmail.com) thanks Laurens\r
50 \r
51         * xmlrpcs.inc: add a new member var in server class to allow fine-tuning\r
52         of the encoding of returned values when the server is in 'phpvals' mode;\r
53         allow servers in 'xmlrpcvals' mode to also register plain php functions by\r
54         defining them in the dispatch map with an added option:\r
55         'parameters_type' => 'phpvals' (feature request #2806628)\r
56 \r
57         * xmlrpc.inc: added new method xmrlpc_client::SetCurlOptions($array) to\r
58         allow extra flexibility in tweaking http config, such as explicitly\r
59         binding to an ip address (feature request #2787468); fix bad encoding if\r
60         same object is encoded twice using php_xmlrpc_encode; removed some by-ref\r
61         assignments and declarations\r
62 \r
63 2009-07-31 - G. Giunta (giunta.gaetano@gmail.com)\r
64 \r
65         * xmlrpc.inc: add support for dateTime objects in both in php_xmlrpc_encode\r
66         and as parameter for constructor of xmlrpcvals; add support for timestamps\r
67         as parameter for constructor of xmlrpcvals; add option 'dates_as_objects' to\r
68         php_xmlrpc_decode to return dateTime objects for xmlrpc datetimes\r
69 \r
70         * benchmark.php, xmlrpc_wrappers.inc: remove usage of split(), deprecated in\r
71         php 5.3\r
72 \r
73         * benchmark.php: fixed url of server page used for testing; improved\r
74         verification of correspondence of test results; added more variants for\r
75         http options comparison\r
76 \r
77         * verify_compat.php: check for php version 5 for client side too\r
78 \r
79         * makefile: remove from build the compat directory\r
80 \r
81 2009-07-26 - G. Giunta (giunta.gaetano@gmail.com)\r
82 \r
83         * server.php: remove usage of ereg*(), deprecated in php 5.3\r
84 \r
85 2009-07-16 - G. Giunta (giunta.gaetano@gmail.com) thanks Jean-Jacques Sarton\r
86 \r
87         * xmlrpc.inc: add support for the <ex:nil/> from the apache library, both\r
88         in input and output (feature request #...)\r
89 \r
90         * xmlrpc.inc, testsuite.php: remove usage of split(), deprecated in php 5.3\r
91 \r
92         * testsuite.php: flush better results with output_buffering on\r
93 \r
94         * server: php: avoid one warning about static function calls\r
95 \r
96 2009-07-02 - G. Giunta (giunta.gaetano@gmail.com) thanks Heiko Stuebner\r
97 \r
98         * xmlrpc.inc: fix: when checking the parameters against the signatures xmlrpc\r
99         checks for "array" but PHP returns "Array" resulting in a not matches signature\r
100 \r
101 2009-05-07 - G. Giunta (giunta.gaetano@gmail.com)\r
102 \r
103         * replace all usage of '= & new' with '= new', as this is deprecated in php 5\r
104         and has been shown to cause problems too\r
105 \r
106 2009-05-06 - G. Giunta (giunta.gaetano@gmail.com)\r
107 \r
108         * create php4 branch, rename trunk to 3.0.0beta - it will be the php5-only version\r
109 \r
110         * xmlrpc.inc: removed test for php version and inclusion of compat patches for really\r
111         really old versions of php 4\r
112 \r
113 2009-03-16 - G. Giunta (giunta.gaetano@gmail.com) thanks Tommaso Trani\r
114 \r
115         * move from CVS to SVN on sf.net; file layout now is the same as in packaged lib\r
116 \r
117         * xmlrpc.inc: fix php warning when receiving 'false' in a bool value\r
118 \r
119         * Makefile, doc/Makefile: alter to follow new file layout\r
120 \r
121         * tagged and released as 2.2.2\r
122 \r
123 2009-02-03 - G. Giunta (giunta.gaetano@gmail.com)\r
124 \r
125         * debugger/action.php: improve code robustness when parsing system.listmethods\r
126         and system.describemethods call\r
127 \r
128         * xmlrpc.inc: format floating point values using the correct decimal separator\r
129         even when php locale is set to one that uses comma (bug #2517579);\r
130         use feof() to test if socket connections are to be closed instead of the\r
131         number of bytes read (bug #2556209)\r
132 \r
133 2008-10-29 - G. Giunta (giunta.gaetano@gmail.com)\r
134 \r
135         * xmlrpcs.inc: allow add_to_map server method to add docs for single params, too\r
136 \r
137 2008-09-20 - G. Giunta (giunta.gaetano@gmail.com)\r
138 \r
139         * xmlrpc_wrappers.inc: added the possibility to wrap for exposure as xmlrpc\r
140         methods plain php class methods, object methods and even whole classes\r
141 \r
142         * testsuite.php, server.php: added test cases for the new code\r
143 \r
144 2008-09-07 - G. Giunta (giunta.gaetano@gmail.com) thanks Bruno Zanetti Melotti\r
145 \r
146         * xmlrpc.inc: be more tolerant in detection of charset in http headers (fix for bug #2058158)\r
147 \r
148 2008-04-05 - G. Giunta (giunta.gaetano@gmail.com)\r
149 \r
150         * xmlrpc.inc: fix encoding of UTF8 chars outside of the BMP\r
151 \r
152         * xmlrpcs.inc: fix detection of zlib.output_compression (thanks xbert)\r
153 \r
154 2008-03-06 - G. Giunta (giunta.gaetano@gmail.com)\r
155 \r
156         * tagged and released as 2.2.1\r
157 \r
158         * Makefile: improve usage on windows xp despite cmd's broken mkdir\r
159 \r
160 2007-10-26 - G. Giunta (giunta.gaetano@gmail.com) thanks sajo_raftman\r
161 \r
162         * xmlrpc.inc: remove one warning in xmlrpc_client creator\r
163 \r
164 2007-10-26 - G. Giunta (giunta.gaetano@gmail.com)\r
165 \r
166         * xmlrpc.inc: improve support for windows cp1252 character set (still\r
167         commented in the code)\r
168 \r
169 2007-09-05 - G. Giunta (giunta.gaetano@gmail.com)\r
170 \r
171         * xmlrpc.inc, xmlrps.inc: do not try to set invalid charsets as output for\r
172         xml parser, even if user set them up for internal_encoding (helps encoding\r
173         to exotic charsets, while decoding to UTF8)\r
174 \r
175 2007-09-05 - G. Giunta (giunta.gaetano@gmail.com)\r
176 \r
177         * xmlrpc.inc: fix parsing of '1e+1' as valid float\r
178 \r
179 2007-09-01 - G. Giunta (giunta.gaetano@gmail.com), thanks Frederic Lecointre\r
180 \r
181         * xmlrpcs.inc: allow errorlevel 3 to work when prev. error handler was a static method\r
182 \r
183         * testsuite.php: fix test on setCookie()\r
184 \r
185 2007-08-31 - G. Giunta (giunta.gaetano@gmail.com)\r
186 \r
187         * xmlrpc.inc: minor fix in cookie parsing\r
188 \r
189 2007-07-31 - G. Giunta (giunta.gaetano@gmail.com)\r
190 \r
191         * xmlrpc.inc: Fix usage of client::setcookie() for multiple cookies in non-ssl mode\r
192 \r
193 2007-07-26 - G. Giunta (giunta.gaetano@gmail.com) thanks Mark Olive\r
194 \r
195         * xmlrpc.inc: Fix for bug # 1756274 (usage of cookies in ssl mode)\r
196 \r
197 2007-04-28 - G. Giunta (giunta.gaetano@gmail.com)\r
198 \r
199         * xmlrpc.inc: give more detailed curl information when DEBUG = 2; fix handling\r
200         of case where curl w. keepalive is used and one connection of many fails\r
201 \r
202         * testsuite improvements: add one testcase; give feedbcak while tests are\r
203         running\r
204 \r
205 2007-04-01 - G. Giunta (giunta.gaetano@gmail.com)\r
206 \r
207         * doc/makefile, doc/custom.fo.xsl: improve pdf rendering of php source code\r
208 \r
209         * makefile: recover version number from source instead of having it hardcoded\r
210 \r
211 2007-03-10 - G. Giunta (giunta.gaetano@gmail.com)\r
212 \r
213         * doc/makefile, doc/convert.php, doc/*.xsl: created customizations xslt to\r
214         produce a documentation more in line with the php manual, esp. with regards\r
215         to functions synopsis; added jellyfish book cover as local resource and a\r
216         screenshot of the debugger too; various updates to the manual source; added\r
217         a php script to highlight examples inside html docs\r
218 \r
219 2007-03-09 - G. Giunta (giunta.gaetano@gmail.com)\r
220 \r
221         * debugger/action.php: css tweak for IE\r
222 \r
223         * added phpunit license file in the phpunit directory\r
224 \r
225         * added link to license (on sf.net site) to many files\r
226 \r
227 2007-03-04 - G. Giunta (giunta.gaetano@gmail.com)\r
228 \r
229         * Makefile, doc/makefile: assorted improvements\r
230 \r
231 2007-03-03 - G. Giunta (giunta.gaetano@gmail.com)\r
232 \r
233         * xmlrpc.inc: micro-optimization in declaration of global vars xmlrpcerr, xmlrpcstr\r
234 \r
235 2007-02-25 Gaetano Giunta <giunta.gaetano@gmail.com>\r
236 \r
237         * removed a couple of warnings emitted in testsuite.php\r
238 \r
239         * doc/makefile: added command for invocation of xxe to generate docs\r
240 \r
241         * better rendering of docs in xml+css format for function prototypes\r
242 \r
243         * updated documentation\r
244 \r
245         * tagged and released as 2.2\r
246 \r
247 2007-02-22 Gaetano Giunta <giunta.gaetano@gmail.com>\r
248 \r
249         * debugger: workaround for case of magic_quotes_gpc being set (properly\r
250         unescape user input); fix case of user not setting msg id in jsonrpc case\r
251         when executing a remote method; allow strings, false, true and null as msg id\r
252 \r
253 2007-02-13 Gaetano Giunta <giunta.gaetano@gmail.com>\r
254 \r
255         * testsuite.php: added one test for automatic encoding/decoding case\r
256 \r
257 2007-02-05 Gaetano Giunta <giunta.gaetano@gmail.com>\r
258 \r
259         * xmlrpc.inc: slightly faster encoding of UTF8 data to ascii\r
260 \r
261 2007-01-11 Gaetano Giunta <giunta.gaetano@gmail.com>\r
262 \r
263         * xmlrpc.inc: when calling client::multicall() with an unspecified http version,\r
264         use the client default rather than the fixed 'http 1.0'\r
265 \r
266 2006-09-17 Gaetano Giunta <giunta.gaetano@gmail.com>\r
267 \r
268         * xmlrpc.inc, xmlrpcs.inc, testsuite.php: added support for <NIL/> and\r
269         system.getCapabilities, and one more testcase to go with it\r
270 \r
271 2006-09-05 Gaetano Giunta <giunta.gaetano@gmail.com>\r
272 \r
273         * xmlrpc.inc: fix support for https through proxies; client parses debug\r
274         messages sent by client even for compressed responses;\r
275 \r
276         * testsuite.php, parse_args.php: added 3 test cases for proxy connections\r
277 \r
278 2006-09-01 Gaetano Giunta <giunta.gaetano@gmail.com>\r
279 \r
280         xmlrpc_wrappers.inc: add two more options in wrap_xmlrpc_method and fix\r
281         typo to allow obj encoding\r
282 \r
283 2006-08-28 Gaetano Giunta <giunta.gaetano@gmail.com>\r
284 \r
285         * xmlrpc_wrappers.inc: more options added to wrap_php_function and\r
286         wrap_xmlrpc_method\r
287 \r
288         * xmlrpc.inc: pave the way to support for <nil/>\r
289 \r
290         * doc/xmlrpc_php.xml documentation updated\r
291 \r
292         * tagged and released as 2.1\r
293 \r
294 2006-08-25 Gaetano Giunta <giunta.gaetano@gmail.com>\r
295 \r
296         * xmlrpc.inc: stricter parsing of incoming messages: detect two DATA elements\r
297         inside an ARRAY, a STRUCT or SCALAR inside an already filled VALUE\r
298 \r
299         * testsuite.php: added two testcases to check for the above cases\r
300 \r
301 2006-08-24 Gaetano Giunta <giunta.gaetano@gmail.com>\r
302 \r
303         * xmlrpc.inc: more code optimization in xmlrpcval::serialize() and\r
304         php_xmlrpc_encode(); fixed bug where struct elements with non-ascii chars\r
305         in their name would not be properly encoded\r
306 \r
307         * testsuite.php: added a testcase for the new bug\r
308 \r
309 2006-08-23 Gaetano Giunta <giunta.gaetano@gmail.com>\r
310 \r
311         * remove old code left in comments across many files; many more javadoc\r
312         comments added\r
313 \r
314         * xmlrpc.inc: a bit of code optimization: reorder switch() statements of\r
315         xml parsing element handlers; inline code for xmlrpcval() - this breaks\r
316         new xmlrpcval('true') and changes error msgs on new xmlrpcval($x, 'invalid_type')\r
317 \r
318         * testsuite.php: change according to above\r
319 \r
320         * benchmark.php: basic support for xdebug 2 profiling\r
321 \r
322 2006-08-22 Gaetano Giunta <giunta.gaetano@gmail.com>\r
323 \r
324         * xmlrpc.inc: addscalar() and addstruct() where not returning 1 when adding\r
325         data to an already formed value\r
326 \r
327 2006-08-21 Gaetano Giunta <giunta.gaetano@gmail.com>\r
328 \r
329         * xmlrpcs.inc, xmlrpc.inc: added support for emulating the xmlrpc-extension\r
330         API (the full emulation layer is part of the extras package);\r
331         fix support for the HTTP 'deflate' encoding\r
332 \r
333         * xmlrpc.inc: better support for http compression with and without CURL;\r
334         a minor decoding speedup; added a new function: php_xmlrpc_decode_xml(),\r
335         that will convert into the appropriate object the xml representation of\r
336         either a request, response or a single value; log reception of invalid\r
337         datetime values\r
338 \r
339         * xmlrpcs.inc: add a new parameter and return type to server->service();\r
340         let server->add_to_map() accept method definitions without parameter types\r
341 \r
342         * xmlrpc_wrappers.inc: more logging of errors; wrap_php_functions now takes\r
343         more options; better support for jsonrpc; escape quote chars when wrapping\r
344         remothe servers / remote methods\r
345 \r
346         * added cvs Id tag to files that missed it; speling fixes; updated NEWS files\r
347 \r
348 2006-08-07 Gaetano Giunta <giunta.gaetano@gmail.com>\r
349 \r
350         * assorted fixes to make the suite more compatible with php 4.0.5 and 5.x\r
351 \r
352 2006-07-02 Gaetano Giunta <giunta.gaetano@gmail.com>\r
353 \r
354         * xmlrpc_warppers.inc: added new function to wrap entire remote server into\r
355         a local php class; changed default calling synopsis of wrap_remote_method,\r
356         to ease passing multiple options at a time (but old syntax still works!)\r
357 \r
358         * updated makefile, debugger/action.php in accord with the above\r
359 \r
360 2006-06-30 Gaetano Giunta <giunta.gaetano@gmail.com>\r
361 \r
362         * added to debugger capability to generate json-rpc code stubs\r
363 \r
364         * added to debugger capability to load and launch self correctly if\r
365         controller.php is called directly from outside processes (single url access)\r
366 \r
367 2006-06-26 Gaetano Giunta <giunta.gaetano@gmail.com>\r
368 \r
369         * moved wrap_php_functions and wrap_xmlrpc_method into a file of their own.\r
370         This will let us add further stub functionality without the base lib growing too much.\r
371         All of the files that reference this functionality have been modified accordingly.\r
372 \r
373         * made wrap_xmlrpc_method generate better code (with php type juggling), and\r
374         some phpdoc for the generated function, too\r
375 \r
376         * added to debugger an option to produce for the user the generated php code\r
377         for wrapping a call to a remote method into a php function\r
378 \r
379 2006-06-22 Gaetano Giunta <giunta.gaetano@gmail.com>\r
380 \r
381         * xmlrpcs.inc: added description of parameters for system.xxx methods (useful with\r
382         html-self-documenting servers);\r
383         server->service() now returns response object, in case user has need for it...\r
384 \r
385         * xmlrpc.inc: save full response payload into xmlrpcresp obj for better debugging\r
386 \r
387 2006-06-15 Gaetano Giunta <giunta.gaetano@gmail.com>\r
388 \r
389         * verify_compat.php: more tests\r
390 \r
391 2006-06-09 Gaetano Giunta <giunta.gaetano@gmail.com>\r
392 \r
393         * xmlrpcs.inc: fixed sending of compressed responses when output compression\r
394         is already enabled in php.ini\r
395 \r
396         * verify_compat.php: split tests between server and client cases\r
397 \r
398 2006-05-29  Gaetano Giunta <giunta.gaetano@gmail.com>\r
399 \r
400         * added new file: verify_compat.php, to help troubleshooting platform\r
401         support for the library; added it to makefile, too\r
402 \r
403 2006-05-24  Gaetano Giunta <giunta.gaetano@gmail.com>\r
404 \r
405         * xmlrpc.inc: removed residual usage of regexp in favour of  pregexps; fixed\r
406         a bug in specifying Host http header with non std ports\r
407 \r
408 2006-05-23  Gaetano Giunta <giunta.gaetano@gmail.com>\r
409 \r
410         * xmlrpc.inc: improvements to wrap_php_function: let it deal correctly\r
411         with php functions returning xmlrpcresp objs; make it generate also\r
412         docs for single parameters (useful for documenting_xmlrpc_server class)\r
413 \r
414 2006-05-22  Gaetano Giunta <giunta.gaetano@gmail.com>\r
415 \r
416         * xmlrpc.inc, xmlrpcs.inc: minor performance tuning updates: replaced\r
417         some explode vs. split, ereg vs. preg, single vs. double quotes\r
418 \r
419         * xmlrpc.inc: fix wrap_xmlrpc_method to NOT rebuild php objects received\r
420         from the server by default, as it might pose a security risk\r
421 \r
422 2006-04-24  Gaetano Giunta <giunta.gaetano@gmail.com>\r
423 \r
424         * minor fixes makefiles. Tagged and released as 2.0 final\r
425 \r
426 2006-04-22  Gaetano Giunta <giunta.gaetano@gmail.com>\r
427 \r
428         * debugger/*: added option to set cainfo; improve web layout\r
429 \r
430         * xmlrpc.inc: set sslverifypeer to TRUE instaed of 1 by default\r
431 \r
432         * doc/php_xmlrpc.xml: documentation updates\r
433 \r
434 2006-04-21  Gaetano Giunta <giunta.gaetano@gmail.com>\r
435 \r
436         * xmlrpc.inc: added option to set ca certs dir instead of single cert\r
437         (used to validate server in https connetions)\r
438 \r
439 2006-04-18  Gaetano Giunta <giunta.gaetano@gmail.com>\r
440 \r
441         * xmlrpc.inc: fixed bug in xmlrpcval::structmemexists()\r
442 \r
443         * testsuite.php: added test case for xmlrpcval::structmemexists()\r
444 \r
445 2006-04-03  Gaetano Giunta <giunta.gaetano@gmail.com>\r
446 \r
447         * xmlrpc.inc: add support for Digest and NTLM authentication, both to server\r
448         and to proxies (note: must use CURL for this to work)\r
449 \r
450         * debugger/*: add support for Digest/NTLM auth to remote servers\r
451 \r
452 2006-03-19  Gaetano Giunta <giunta.gaetano@gmail.com>\r
453 \r
454         * xmlrpc.inc: fix a bug parsing of 'true' bool values;\r
455         added a new method to the client class: SetCaCertificate;\r
456         add column number in xml parsing error messages;\r
457         fix serialization of messages to ISO-8859-1 charset with php 5 (by adding\r
458         encoding to the xml prologue of generated messages)\r
459 \r
460         * xmlrpcs.inc: correct detection of charset in http headers;\r
461         add column number in xml parsing error messages;\r
462         fix serialization of responses to ISO-8859-1 charset with php 5 (by adding\r
463         encoding to the xml prologue of generated responses)\r
464 \r
465         * testsuite.php: added two more tests on charset encoding\r
466 \r
467         * NEWS: update info for impending release\r
468 \r
469 2006-03-23  Gaetano Giunta <giunta.gaetano@gmail.com>\r
470 \r
471         * added a new demo file: simple_call.php\r
472 \r
473 2006-02-20  Gaetano Giunta <giunta.gaetano@gmail.com>\r
474 \r
475         * xmlrpcs.inc: more error checking and logging with regard to user-coded\r
476         method handler functions not being well behaved;\r
477         fix a case where error handler would not be reset upon user function\r
478         returning not valid xmlrpresp\r
479 \r
480         * xmlrpc.inc: fix bug in detection of php 4.3.0\r
481 \r
482         * Makefile: fix uppercase filenames\r
483 \r
484 2006-02-15\r
485 \r
486         * xmlrpc.inc: parse 'true' and 'false' as valid booleans, even though the\r
487         spec is quite clear on that; fix small bug w. internal_encoding = utf8; add\r
488         definition of $GLOBALS['xmlrpcNull'] for extensibility, e.g. json or\r
489         extensions to the xmlrpc spec\r
490 \r
491 2006-02-05  Gaetano Giunta <giunta.gaetano@gmail.com>\r
492 \r
493         * xmlrpc.inc: fix bug in wrap_xmlrpc_method if client passed to function has\r
494         return_type=phpvals\r
495 \r
496         * all demo files: review code, add more comments and information\r
497 \r
498         * added 2 demo files: proxy.php (implementing an xmlrpc proxy server) and\r
499         wrap.php (showing usage of wrap_method_call)\r
500 \r
501 2006-02-04  Gaetano Giunta <giunta.gaetano@gmail.com>\r
502 \r
503         * xmlrpc.inc: fix bug in multicall in case of no fallback and server error\r
504 \r
505 2006-01-30  Gaetano Giunta <giunta.gaetano@gmail.com>\r
506 \r
507         * xmlrpc.inc: fix recursive serialization of xmlrpcvals loosing UTF8 charset;\r
508         correctly set type field of xmlrpcvals returned by send() calls\r
509 \r
510         * xmlrpcs.inc: add to server checks for correct return type of user-coded\r
511         method handling function; tolerate xmlrpcval instead of xmlrpcresp\r
512 \r
513         * minor change in xmlrpcresp internals, to ease subclassing (store payload\r
514         in an internal var on serialize(), same as xmlrpcclient does)\r
515 \r
516 2006-01-22  Gaetano Giunta <giunta.gaetano@gmail.com>\r
517 \r
518         * benchmark.php: do not run http 1.1 tests if CURL notfound\r
519 \r
520         * Released as 2.0 Rc3\r
521 \r
522 2006-01-19  Gaetano Giunta <giunta.gaetano@gmail.com>\r
523 \r
524         * xmlrpc.inc: make xmlrpc_client::setDebug() accept int values instead of\r
525         boolean. At level 2, the request payload is printed to screen before being\r
526         sent; fix bug with repeated sending of the same msg object and using request\r
527         compression w. php 5.1.2 (objects passed by ref by default!!!)\r
528 \r
529         * xmlrpcs.inc: fix detection of clients accepting compressed responses\r
530 \r
531         * comment.php: remove warnings due to liberal usage of $HTTP_POST/GET_VARS\r
532 \r
533         * benchmark.php: add a test using http compression of both requests and\r
534         responses\r
535 \r
536         * testsuite.php: added test for fix in xmlrpc.inc\r
537 \r
538 2006-01-17  Gaetano Giunta <giunta.gaetano@gmail.com>\r
539 \r
540         * xmlrpcs.php: minor fix: do not raise a PHP warning when std server is\r
541         called via GET (global HTTP_RAW_POST_DATA undefined). Some might have called\r
542         it a security breach (path disclosure)...\r
543 \r
544 2006-01-15  Gaetano Giunta <giunta.gaetano@gmail.com>\r
545 \r
546         * testsuite.php: minor fix to expected date format in http cookie hedaer\r
547         to cope with PHP 5.1.2\r
548 \r
549 2006-01-05  Gaetano Giunta <giunta.gaetano@gmail.com>\r
550 \r
551         * xmlrpcs.inc: merge code from the 'extras' subclass that allows server\r
552         to register plain php functions in dispatch map instead of functions\r
553         accepting a single xmlrpcmgs obj parameter.\r
554         One step closer to the kitchen sink!!!\r
555 \r
556 2005-12-31  Gaetano Giunta <giunta.gaetano@gmail.com>\r
557 \r
558         * xmlrpcs.inc: let the server accept 'class::method' syntax in the dispatch\r
559         map\r
560 \r
561         * testsuite.php, server.php: added new tests for the recent charset encoding\r
562         capabilities\r
563 \r
564 2005-12-24  Gaetano Giunta <giunta.gaetano@gmail.com>\r
565 \r
566         * xmlrpc.inc: correctly serialize() string xmlrpcvals that have been\r
567         created out of non-string php variables, when internal encoding is UTF8;\r
568         serialize to '0' int and double values created out of non-string php\r
569         variables, eg. 'hello', instead of creating invalid xmlrpc;\r
570         extend the php_xmlrpc_encode function to allow serializing string values\r
571         to charsets other tha US-ASCII;\r
572         minor tweak to xml parsing to allow correct parsing of empty strings when\r
573         in 'direct to php values' mode\r
574 \r
575         * xmlrpcs.inc: advances in system.multicall with plain php values\r
576 \r
577 2005-12-17  Gaetano Giunta <giunta.gaetano@gmail.com>\r
578 \r
579         * xmlrpcs.inc: let the functions implementing the system.* methods work\r
580         fine when called with plain php values as parameters instead of xmlrpcmsg\r
581         objects (multicall not quite finished yet...);\r
582         encode level 3 debug info as base64 data, to avoid charset encoding hell\r
583 \r
584         * xmlrpc.inc: added a new xmlrpc_2_php_type function, to get the name of\r
585         php types corresponding to xmlrpc types;\r
586         in debug mode, when detecting base64 server debug info, print it out fine\r
587 \r
588         * server.php: cosmetic fixes\r
589 \r
590 2005-12-09  Gaetano Giunta <giunta.gaetano@gmail.com>\r
591 \r
592         * xmlrpc.inc: remove one warning emitted when received xml contains an\r
593         unknown tag; remove warnings emitted when custom error handler is set\r
594         and user calls php_xmlrpc_encode/decode without the 2nd parameter\r
595 \r
596         * xmlrpcs.inc: added a param to service(), to allow the server to parse\r
597         data other than the POST body (useful for subclassing and debugging);\r
598         reworked the implementation of server debug messages at debug level 2:\r
599         since the debug info generated has no known charset, and putting it back\r
600         into the response's xml would most likely break it, send it back to the\r
601         client as a base64 encoded comment. Clients can decode it if they need it...\r
602         Add some more javadocs\r
603 \r
604         * testsuite.php: modified the string test, to see if the server can echo\r
605         back to the client the received data without breaking the response's xml\r
606 \r
607 2005-12-05  Gaetano Giunta <giunta.gaetano@gmail.com>\r
608 \r
609         * xmlrpc.inc, xmlrpcs.inc: let server and client objects decide if they\r
610         want to use some charset encoding other than US-ASCII for serialized data:\r
611         add a new var to both objects, and lots of parameters to function calls\r
612         that took none up to now;\r
613         refactored server method service() and parseRequest(), implementing a\r
614         new parserequestHeaders() method to explicitly deal with HTTP\r
615 \r
616 2005-12-01  Gaetano Giunta <giunta.gaetano@gmail.com>\r
617 \r
618         * moved the jsonrpc implementation and the new wsdl stuff to a separate\r
619         CVS module; updated the makefile to reflect it\r
620 \r
621 2005-11-24  Gaetano Giunta <giunta.gaetano@gmail.com>\r
622 \r
623         * modified php_xmlrpc_decode() to work on xmlrpcmessages too, besides\r
624         xmlrpcvals. To achieve this, added a new method: xmlrpcmsg::kindOf()\r
625 \r
626 2005-11-22  Gaetano Giunta <giunta.gaetano@gmail.com>\r
627 \r
628         * released as 2.0 RC2\r
629 \r
630 2005-11-21  Gaetano Giunta <giunta.gaetano@gmail.com>\r
631 \r
632         * xmlrpc.inc: fix warnings about references for PHP 4.1.X\r
633 \r
634         * Whitespace cleanup on all the lib\r
635 \r
636 2005-11-16  Gaetano Giunta <giunta.gaetano@gmail.com>\r
637 \r
638         * xmlrpc.inc: rewritten xmlrpc_encode_entitites adding two extra parameters\r
639         that specify input and output charset encodings. This corrects the bug that\r
640         prevented native UTF-8 strings to be correctly serialized (to have them\r
641         encoded the user must set $xmlrpc_internalencoing appropriately).\r
642 \r
643         * xmlrpc.inc: added new method xmlrpcmsg::parseResponseHeaders(), refactoring\r
644         parseResponse(). This makes the code more modular and eases subclassing.\r
645 \r
646         * xmlrpc.inc: set cookies and http headers to xmlrpcresp objs even when calls\r
647         to send() do not complete correctly\r
648 \r
649         * added new file: jsonrpcs.inc, to accomodate server jsonrpc objects in the future\r
650 \r
651         * jsonrpc.inc: slow progress...\r
652 \r
653 2005-11-10  Gaetano Giunta <giunta.gaetano@gmail.com>\r
654 \r
655         * xmlrpc.inc: fixed the xmlrpc_client send and sendpayloadhttps methods\r
656         to fix errors in calling https servers;\r
657         added a new xmlrpc_client->setkey method to allow usage of client-side ssl\r
658         certs in recent php builds;\r
659         added to xmlrpcresp objects a content_type var, to be used in HTTP headers\r
660 \r
661         * xmlrpcs.inc: separate generation of content-type http header and xml prologue\r
662         from the service() method, to ease subclassing\r
663 \r
664 2005-11-03  Gaetano Giunta <giunta.gaetano@gmail.com>\r
665 \r
666         * xmlrpc.inc: moved the 'text/xml' mimetype string as class var of the xmlrpcmsg\r
667         object instead of having it cabled into xmlrpc_client->send(): this allows to\r
668         create subclasses of xmlrpcmsg that use a different mimetype\r
669 \r
670         * jsonrpc.inc: added a new file, with an extremely experimental set of classes,\r
671          designed to implement a json-rpc client and server, taking advantage of the\r
672          existing xml-rpc infrastructure\r
673 \r
674 2005-10-28  Gaetano Giunta <giunta.gaetano@gmail.com>\r
675 \r
676         * xmlrpc.inc: changed constructor method for xmlrpcresp, making it smarter in\r
677         case user does not declare the type of value it is passing to it;\r
678         minor changes in serialization of xmlrpcresp with error codes, so that it\r
679         utputs LF instead of CRLF on windows boxes after an FTP transfer of the code, too\r
680 \r
681 2005-10-26  Gaetano Giunta <giunta.gaetano@gmail.com>\r
682 \r
683         * xmlrpc.inc: added a new var of class xmlrpc_client, indicating what kind of\r
684         object will be stored in the value() of xmlrpcresp's gotten from the send()\r
685         method: xmlrpxc objects, plain php variables or raw xml. This allow the coder\r
686         to make use of xmlrpc_decode for better performances if he wishes so.\r
687         Modified creator of xmlrpcresp class to allow it to distinguish between being\r
688         created out of raw xml or a plain php string (in the former case, serialization\r
689         is still possible, opening a new world of opportunity for server-side programming:\r
690         the php function implementing a web service has to provide the xml for the\r
691         return value on its own).\r
692         Modified xmlrpc_client::multicall() to suit; also added a new parameter which\r
693         allows calls to multicall without automatic fallback to many-calls in case of\r
694         error (speeding up the process of doing a failed multicall() call quite a bit)\r
695         Fixed two bugs in guess_encoding.\r
696         Audited all regexps and fixed some.\r
697         xmlrpc_client::send() does not call xmlrpcmsg::parseresponsefile() anymore.\r
698         Shuffled parseresponse() a little bit\r
699 \r
700         * testsuite.php: added a new testcase for the modifications to multicall():\r
701         now we test the case where xmlrpc_client returns php values, too\r
702 \r
703 2005-10-24  Gaetano Giunta <giunta.gaetano@gmail.com>\r
704 \r
705         * xmlrpc.inc: fixed guess_encoding() to always return uppercase chars\r
706 \r
707         * added new file: benchmark.php. It contains a few tests used to evaluate\r
708         speed of the lib in common use cases\r
709 \r
710         * added file parse_args.php, containing common code for benchmark and\r
711         testsuite, and modified testsuite.php accordingly\r
712 \r
713         * modified makefile adding new files\r
714 \r
715         * testsuite.php: added a couple of new test cases; fixed one warning\r
716         emitted in php 5 E_STRICT mode\r
717 \r
718 2005-10-20  Gaetano Giunta <giunta.gaetano@gmail.com>\r
719 \r
720         * xmlrpc.inc: modify 3d param of ParseResponse(), allowing the function to\r
721         return the raw xml received as value of the xmlrpcresponse object.\r
722         This allows eg. to have epi-xmlrpc decode the xml for faster execution.\r
723 \r
724 2005-10-09  Gaetano Giunta <giunta.gaetano@gmail.com>\r
725 \r
726         * xmlrpc.inc: fixed error that prevented usage of HTTPS (the client\r
727         always determined that ssl support was not present)\r
728 \r
729 2005-10-03  Gaetano Giunta <giunta.gaetano@gmail.com>\r
730 \r
731         * xmlrpc.inc, xmlrpcs.inc: revert direction of stack growth during xml\r
732         parsing for faster execution time; add support for detecting charset\r
733         encoding of received xml; add support for cookies; better parsing of\r
734         javadoc when building stub code in wrap_php_function; add a lot of\r
735         javadoc comments everywhere; rewrite most error messages\r
736 \r
737         * testsuite.php: add many tests for newly introduced features\r
738 \r
739         * server.php: add a couple of new functions to support debugging new\r
740         features\r
741 \r
742         * debugger: add switches to enable all the latest lib features; minor\r
743         improvements to layout\r
744 \r
745         * synch included phpunit with latest PEAR release\r
746 \r
747         * reorganize files included in the distribution in a new hierarchy of folders\r
748 \r
749         * bump revision number to 2.0RC1 and release\r
750 \r
751 2005-8-14  Miles Lott <milos@groupwhere.org>\r
752 \r
753         * xmlrpc.inc, xmlrpcs.inc: Remove all use of eval() to avoid potential\r
754         security hole.\r
755 \r
756         * As of this release we are no longer php3-compatible.\r
757 \r
758 2005-8-10 Miles Lott <milos@groupwhere.org>\r
759 \r
760         * xmlrpc.inc, xmlrpcs.inc: Switched to using $GLOBALS instead of calling\r
761         global $varname\r
762 \r
763 2005-07-22  Miles Lott <milos@groupwhere.org>\r
764 \r
765         * Removed: bug_* files\r
766 \r
767 2005-07-14  Gaetano Giunta <giunta.gaetano@gmail.com>\r
768 \r
769         * debugger: added a workaround to disable using the debugger for attacking\r
770         older versions of the lib\r
771 \r
772         * testsuite.php: added code to test wrap_xmlrpc_method;\r
773         use different wording for failed tests\r
774 \r
775         * xmlrpcs.inc: change for() with foreach() in system.* methods implementations;\r
776         remove a possible cause of php warning;\r
777 \r
778         * xmlrpc.inc: let wrap_php_function and wrap_xmlrpc_method find suitable\r
779         function names if default function names are already in use;\r
780         correct wrap_xmlrpc_method to not set http protocol to 1.0 when not asked to;\r
781         detect curl compiles without SSL\r
782 \r
783 2005-07-14  Gaetano Giunta <giunta.gaetano@gmail.com>\r
784 \r
785         * xmlrpc.inc: more auto-fix of xmlrpc_client path: '' -> '/';\r
786         change to the method used for detecting failed evals (php 4.0.x compatibility);\r
787         complete rework of return-by-ref functions to comply with php 4.4.0\r
788 \r
789         * xmlrpcs.inc: change to the method used for detecting failed evals (php 4.0.x\r
790         compatibility)\r
791 \r
792         * testsuite.php: major rewrite of the multi- tests, to give better feedback on\r
793         number of failed tests;\r
794         flush html page title to screen before starting tests;\r
795 \r
796 2005-07-13  Gaetano Giunta <giunta.gaetano@gmail.com>\r
797 \r
798         * xmlrpc.inc: let xmlrpcmsg creator be forgiving of target paths that miss the\r
799         starting '/' char;\r
800         completely reworked assign-by-ref to be compliant with php 4.4.0 stricter\r
801         warnings\r
802 \r
803         * testsuite.php: added ability to be run from cli: (really dumb) separation of\r
804         html and plain text outputs + parsing of argv parameters\r
805 \r
806 2005-07-12  Gaetano Giunta <giunta.gaetano@gmail.com>\r
807 \r
808         * xmlrpc.inc: compatibility fixes with PHP versions 4.0.x (and remove some for\r
809         PHP 3)\r
810 \r
811         * xmlrpcs.inc: compatibility fixes for PHP 4.0.x versions\r
812 \r
813         * testsuite.php: better support for running with php versions 4.0.x;\r
814         do not generate runtime errors but finish tests anyway if some calls to\r
815         localhost fail;\r
816         correctly detect a localhost port different from 80 for running tests against\r
817 \r
818 2005-07-11  Gaetano Giunta <giunta.gaetano@gmail.com>\r
819 \r
820         * xmlrpc.inc: preliminary building of method signature and docs in\r
821         wrap_php_function;\r
822         fix a bug in extracting function description from javadoc block in\r
823         wrap_php_function;\r
824         small fix for better compatibility with php < 4.2.0\r
825 \r
826         * added compat subdir with extra code, taken form PEAR package Compat, to let\r
827         the lib run fine with php 4 versions < 4.1\r
828 \r
829 2005-07-10  Gaetano Giunta <giunta.gaetano@gmail.com>\r
830 \r
831         * xmlrpc.inc: some nazi whitespace corrections;\r
832         declared global $xmlrpcBoolean too (was the only one missing);\r
833         used @eval inside getval() to have less path disclosure security reports filed\r
834         in the future;\r
835         added new global var: $xmlrpcValue, to be used in server dispatch maps as\r
836         placeholder for a param which can be of any kind;\r
837         big chunks (but still incomplete) of javadoc parsing in wrap_php_function\r
838         + changed type of return val - now it is the complete array to be put in the\r
839         dispatch map\r
840 \r
841         * xmlrpcs.inc: let previous error handler be called by server to handle errors\r
842         even if in debug level 3;\r
843         default to compress responses if zlib installed;\r
844         added a new val useful for only checking number (not type) of params in method\r
845         calls;\r
846         let user use object methods in dispatch map using the\r
847         array($obj, 'fmethodname') format\r
848 \r
849         * server.php: Added code called by testsuite.php to exercise registration of\r
850         object methods as xmlrpc methods and auto-registration of php functions as xmlrpc\r
851         methods\r
852 \r
853         * testsuite.php: added tests to exercice server registering object methods as\r
854         xmlrpc methods and automatic registration of php functions as server methods;\r
855         added a hint to enable debug if some test goes wrong;\r
856         renamed https test for better clarity\r
857 \r
858 2005-07-07  Gaetano Giunta <giunta.gaetano@gmail.com>\r
859 \r
860         * xmlrpc.inc: added function to be used for 'guestimating' charset encoding of\r
861         received xml (not activated yet)\r
862 \r
863         * server.php: Let server compress content by default if user asks so: it allows\r
864         testsuite to check for compressed responses\r
865 \r
866         * testsuite.php: added suite of tests for compressed responses; test CURL\r
867         (http1.1) with all possible compression combinations too\r
868 \r
869 2005-07-06  Gaetano Giunta <giunta.gaetano@gmail.com>\r
870 \r
871         * xmlrpc.inc: Enable setting usage of keepalives on/off (for CURL cases);\r
872         implement compression of xmlrpc requests; enable new syntax of xmlrpclient\r
873         constructor: 1 - allow preferred http method to be set at creation time,\r
874         2 - allow user to insert a single complete URL as only parameter and parse it;\r
875         try to detect if curl is present whether it has been compiled w. zlib to enable\r
876         automatically the reception of compressed responses\r
877 \r
878         * xmlrpcs.inc: do not add into logs the content of the request, if it was\r
879         received gzipped/deflated, to avoid breaking the xml sent back as response\r
880         (NB: might be investigated further: is the problem caused by windows chars in\r
881         the range 128-160 ?)\r
882 \r
883         * testsuite.php: run all localhost tests 2 more times, to stress request\r
884         compression;\r
885         run all localhost tests in a row using keepalives, to test keepalive\r
886         functionality\r
887 \r
888 2005-07-05  Gaetano Giunta <giunta.gaetano@gmail.com>\r
889 \r
890         * xmlrpc.inc: let CURL pass back to caller function the complete PHP headers\r
891         as it did before: it enables better logging / debugging of communication;\r
892         small change to the way CURL declares its ability to receive compressed\r
893         messages (fix for the case where zlib is compiled in PHP but not in curl);\r
894         added Keep-alive (ON BY DEFAULT) for http 1.1 and https messages (had to modify\r
895         a lot of functions for that);\r
896         always make sure a 'Connection: close' header is sent with curl connections if\r
897         keep-alive is not wanted\r
898 \r
899         * phpunit.php: switched to PEAR PHPUnit (rel 1.2.3), since it is maintained a\r
900         lot more than the old version we were using\r
901 \r
902         * added new folder with code of phpunit classes\r
903 \r
904         * testsuite.php: added a new run of tests to check for compliance of client\r
905         when using http 1.1;\r
906         switched to PEAR PHPUnit classes;\r
907         divided test for client ability to do multicall() into 2 separate tests\r
908 \r
909 2005-06-30  Gaetano Giunta <giunta.gaetano@gmail.com>\r
910 \r
911         tagged and released version 1.1.1, backporting security fixes from HEAD\r
912 \r
913 2005-06-28  Gaetano Giunta <giunta.gaetano@gmail.com>\r
914 \r
915         * xmlrpcs.inc: fix changes introuced yesterday in a rush;\r
916         do not list system.* methods for a server that has them explicitly disabled\r
917 \r
918         * bug_inject.xml: new test case used to check for code injection vulnerability\r
919 \r
920         * testsuite.php: added a test case for zero parameters method calls;\r
921         added two test cases for recently found code injection vulnerabilities\r
922 \r
923 2005-06-27  Gaetano Giunta <giunta.gaetano@gmail.com>\r
924 \r
925         * xmlrpc.inc: (tentative) fix for security problem reported by\r
926         security@gulftech.org: we were not properly php-escaping xml received for\r
927         BASE64 and NAME tags;\r
928         some more patching related to junk received in xml messages/responses: if the\r
929         PHP code built from the parsed xml is broken, catch any generated errors\r
930         without echoing it to screen but take note of the error and propagate to user\r
931         code\r
932 \r
933         * xmlrpcs.inc: some more patching related to junk received in xml messages/\r
934         responses: if the PHP code built from the parsed xml is broken, catch any\r
935         generated errors without echoing it to screen but take note of the error and\r
936         propagate to user code\r
937 \r
938 2005-06-24  Gaetano Giunta <giunta.gaetano@gmail.com>\r
939 \r
940         * xmlrpc.inc: fixed php_xmlrpc_encode detection of php arrays (again!);\r
941         removed from wrap_php_function the part about setting a custom error handler\r
942         (it can be activated using the more general $server->setdebug(3) anyway)\r
943 \r
944         * xmlrpcs.inc: added to server the capability to trap all processing errors\r
945         during execution of user functions and add them to debug info inside responses;\r
946         return a (new) xmlrpcerr response instead of raising some obscure php execution\r
947         error if there is an undefined function in the dispatch map\r
948 \r
949         * testsuite.php: Added new testcases for recently implemented stuff\r
950 \r
951 2005-06-23  Gaetano Giunta <giunta.gaetano@gmail.com>\r
952 \r
953         * xmlrpc.inc: added new method: xmlrpcval->structmemexists, to check for\r
954         presence of a wanted struct member without having to loop through all members;\r
955         fix wrap_php_functions: correctly return false for php internal functions,\r
956         whose param list is unknown;\r
957         let addscalar fail as it should if called on struct vals;\r
958         fix addstruct: do not fail when called for adding stuff to initialized structs;\r
959         removed a warning generated when calling addscalar with inexistent type;\r
960         massive code review for speed: replaced each() loops with foreach(), removed\r
961         lots of useless assignments and duplications of data;\r
962         added 'http11' as valid method param for xmlrpclient->send: makes use of curl\r
963         for sending http 1.1 requests;\r
964         changed a couple '=' into '=&' where objects are returned;\r
965         fixed wrap_php_function() to better detect php errors while processing wrapped\r
966         function\r
967 \r
968         * xmlrpcs.inc: Fix php warnings generated when clients requested method\r
969         signature / description for a method that had none in its dispatch map;\r
970         turned server->debug into an integer value that will change the amount of\r
971         logging going as comments into xmlrpc responses\r
972 \r
973         * server.php: set default server debug level to 2\r
974 \r
975         * testsuite.php: removed calls to deleted functions (xmlrpc_encode,\r
976         xmlrpc_decode);\r
977         added html page title describing target servers used for tests;\r
978         added an assign-by-ref\r
979 \r
980         * phpunit.php: Do not consider as failures PHP 5 E_STRICT errors (arbitrary\r
981         choice, but lib is targeted at PHP 4)\r
982 \r
983 2005-06-22  Gaetano Giunta <giunta.gaetano@gmail.com>\r
984 \r
985         * xmlrpc.inc: removed lottsa old code that had been left in commented\r
986 \r
987         * xmlrpc.inc: fixed setting of proxy port\r
988 \r
989         * xmlrpc.inc: removed one warning when trying to decompress junk sent as\r
990         deflated response\r
991 \r
992         * xmlrpc.inc: changed the error messages (but not the code) that will be found\r
993         in xmlrpcresponses when there are socket errors, to differentiate from HTTP\r
994         errors\r
995 \r
996         * xmlrpc.inc: refactored xmlrpcclient->sendpayloadHTTPS: now it calls a new\r
997         method (sendpayloadCURL) that could be used also for generating HTTP 1.1\r
998         requests\r
999 \r
1000         * xmlrpc.inc: added two new methods: wrap_php_function and wrap_xmlrpc_method:\r
1001         designed to let the lazy programmer automagically convert php functions to\r
1002         xmlrpc methods and vice versa. Details are in the code\r
1003 \r
1004         * debugger/*: added initial revision of a 'universal xmlrpc debugger'\r
1005 \r
1006 2005-06-20  Gaetano Giunta <giunta.gaetano@gmail.com>\r
1007 \r
1008         * xmlrpc.inc: replace usage of 'echo' with error_log when errors arise\r
1009         in manipulation of xmlrpcval objects\r
1010 \r
1011         * xmlrpc.inc: replaced <br> with <br /> in dump function\r
1012 \r
1013         * xmlrpc.inc: added method structsize to xmlrpcval class (alias for arraysize)\r
1014 \r
1015         * xmlrpc.inc: addarray() now will add extra members to an xmlrpcval object\r
1016         of array type; addstruct() can be used to add members to an xmlrpcval object\r
1017         of struct type\r
1018 \r
1019         * xmlrpcs.inc: Added member allow_system_funcs to server: controls whether the\r
1020         server accepts or not calls to system.* functions\r
1021 \r
1022 2005-05-10  Gaetano Giunta <giunta.gaetano@gmail.com>\r
1023 \r
1024         * xmlrpc.inc: fix regression in php_xmlrpc_encode when encoding php hashes;\r
1025         fix decompression of gzip/deflated xmlrpc responses;\r
1026         set user agent string correctly in SSL mode (was forgetting lib name);\r
1027         add allowed encoding http headers in requests;\r
1028         do not pass http headers back from curl to parseresponse, to avoid re-decoding\r
1029         compressed xml or http 100 headers\r
1030 \r
1031         * xmlrpcs.inc: added method setDebug;\r
1032         renamed compress_output to compress_response;\r
1033         do not try to set http headers if they have already been sent, because trying\r
1034         to do so will raise a PHP error, and if headers have been sent something has\r
1035         gone wrong already (shall we send a meaningful error response instead?)\r
1036 \r
1037 2005-05-08  Gaetano Giunta <giunta.gaetano@gmail.com>\r
1038 \r
1039         * xmlrpcs.inc, xmlrpcs.inc: reverted to usage of '=& new' for better\r
1040         performance on (some) php4 installs.\r
1041         NB: PHP 3 compatibility is deprecated from now on!\r
1042 \r
1043         * xmlrpc.inc: decode xmlrpc boolean type to native php boolean\r
1044 \r
1045         * xmlrpcs.inc, xmlrpcs.inc: switched $_xh[$parser] to $_xh, since indexing\r
1046         an array by object will give a warning in php 5 (and we were resetting the\r
1047         array of _xh elements on every call anyway)\r
1048 \r
1049         * xmlrpc.inc: commented unused code used originally for escaping content\r
1050 \r
1051         * xmlrpc.inc: commented deprecated methods xmlrpc_encode and xmlrpc_decode\r
1052 \r
1053         * xmlrpc.inc: php_xmlrpc_encode: encode integer-indexed php arrays as xmlrpc\r
1054         arrays instead of structs; if object given to encode is an xmlrpcval return it\r
1055         instead of reencoding (makes easier calling encode on an array of xmlrpcvals)\r
1056 \r
1057         * xmlrpcs.inc: added $debug field to server class; if false will prevent\r
1058         the server from echoing debug info back to the client as xml comment\r
1059 \r
1060         * xmlrpcs.inc: let the server add to the debug messages the complete request\r
1061         payload received and (if php installed as apache module) http headers, so that\r
1062         the client in debug mode can echo a complete fingerprint of the communication\r
1063 \r
1064         * xmlrpcs.inc: changed API of ParseRequest method: now it cannot be called\r
1065         without a 'data' parameter; added 2nd parameter (http encoding); changed the\r
1066         call to this method from inside service() method\r
1067 \r
1068         * xmlrpc.inc, xmlrpcs.inc: enable both server and client to parse compressed xml\r
1069         (if php is compiled with zlib); client should also be able to decode chunked\r
1070         http encoding\r
1071 \r
1072         * xmlrpc.inc: add support for proxies (only basic auth supported); default port\r
1073         is 8080 (if left unspecified)\r
1074 \r
1075         * xmlrpc.inc: use lowercase for names of http headers received (makes using\r
1076         them much simpler, since servers can use any upper/lowercase combination)\r
1077 \r
1078         * xmlrpc.inc: bumped version number to '2.0 beta'\r
1079 \r
1080 2005-05-08  Gaetano Giunta <giunta.gaetano@gmail.com>\r
1081 \r
1082         * release of version 1.1\r
1083 \r
1084 2005-04-24  Gaetano Giunta <giunta.gaetano@gmail.com>\r
1085 \r
1086         * xmlrpcs.inc: removed charset declaration from xml prologue of responses,\r
1087         since we are now escaping all non-ascii chars in an encoding-independent way\r
1088 \r
1089         * bug_http.xml: modified to exercise some extra functonality of the lib\r
1090         (it should now be failed by the current PEAR implementation of the lib)\r
1091 \r
1092         * xmlrpc.inc: bumped up rev. number to 1.1\r
1093 \r
1094         * doc/xmlrpc_php.xml, doc/announce1_1.txt: documentation updates\r
1095 \r
1096         * Makefile: updated to reflect new xml doc source, modified filelist\r
1097 \r
1098 2005-04-17  Gaetano Giunta <giunta.gaetano@gmail.com>\r
1099 \r
1100         * client.php, agesort.php, introspect.php, introspect_demo.php,\r
1101         which.php, test.pl, test.py: use as default target the server.php page hosted\r
1102         on phpxmlrpc.sf.net\r
1103 \r
1104         * server.php: fix for register_globals off; refer to docs on phpxmlrpc.sf.net\r
1105 \r
1106 2005-04-15 Miles Lott <milos@groupwhere.org>\r
1107 \r
1108         code formatting and comments\r
1109 \r
1110 2005-04-03  Gaetano Giunta <giunta.gaetano@gmail.com>\r
1111 \r
1112         * xmlrpc.inc: make use of global var $xmlrpcName in building User_Agent HTTP\r
1113         header (in conjunction with $xmlrpcVersion)\r
1114 \r
1115         * agesort.php, client.php, comment.php, dicuss.php, mail.php, server.php,\r
1116         which.php: various janitorial fixes\r
1117         + always html escape content received from xmlrpc server or from user input\r
1118         + make the scripts run fine with register_globals off an register_long_arrays off\r
1119         + always use the functions php_xmlrpc_en(de)code, even if the EPI extension\r
1120         is not installed\r
1121         + in mail.php, allow user to see script source even if support for .phps files\r
1122         is not configured in the local web server\r
1123 \r
1124         * testsuite.php: better detection of local webserver hostname for running tests\r
1125         against (if the user did not supply a webserver name)\r
1126 \r
1127 2005-03-21  Gaetano Giunta <giunta.gaetano@gmail.com>\r
1128 \r
1129         * xmlrpcs.inc: revert to a PHP3 compatible script (change '=& new' to '= new')\r
1130 \r
1131         * xmlrpc.inc: revert to a PHP3 compatible script (lottsa fixes)\r
1132 \r
1133         * testsuite.php: default to using local server as test target if no user\r
1134         provided values are available instead of heddley.com server\r
1135 \r
1136         * testsuite.php: play nice to PHP3 in retrieving user-passed values\r
1137 \r
1138         * testsuite.php: fix constructor method name for a type of tests\r
1139 \r
1140         * phpunit.php: fix all cases of call-time-pass-by-ref\r
1141 \r
1142         * phpunit.php: rename Exception class to _Exception if the script is run with\r
1143         PHP 5 (exception is a reserverd word)\r
1144 \r
1145 2005-03-19  Gaetano Giunta <giunta.gaetano@gmail.com>\r
1146 \r
1147         * xmlrpc.inc: fixed bug in new http header parsing code in case there is\r
1148         no correct separator between response headers and body\r
1149 \r
1150         * xmlrpc.inc: added recognizing and stripping of HTTP/1.1 100 response headers\r
1151 \r
1152         * xmlrpc.inc: strip extra whitespace from response body, as well as any junk\r
1153         that comes after the last </MethodResponse> tag. It allows the server code to\r
1154         be put on public providers that add e.g. javascript advertising to served pages\r
1155 \r
1156         * xmlrpc.inc: removed unused parts of code, trailing whitespace\r
1157 \r
1158         * xmlrpc.inc: fix possible bug (?) in xmlrpc_ee for BOOLEAN values: true was\r
1159         being handled differently than false\r
1160 \r
1161         * testsuite.php: added a new file-based test to stress the response parsing\r
1162         modifications recently introduced; enabled debugging for file based tests\r
1163 \r
1164 2005-03-15  Gaetano Giunta <giunta.gaetano@gmail.com>\r
1165 \r
1166         * xmlrpc.inc: fixed missing declaration of global vars in xmlrpc_dh,\r
1167         sendpayloadhttps and sendpayloadhttp10\r
1168 \r
1169         * xmlrpc.inc: changed error message for invalid responses: 'enable debugging'\r
1170         is more clear that 'enabling debugging' (the user is being encouraged to do it)\r
1171 \r
1172         * xmlrpc.inc: rewrote HTTP response header parsing. It should be more tolerant\r
1173         of invalid headers, give more accurate error messages and be marginally faster,\r
1174         too.\r
1175 \r
1176         * xmlrpc.inc: cosmetic whitespace fixes and remove useless one-liners\r
1177 \r
1178         * xmlrpc.inc: build a shorter PHP command line to be evaluated for rebuilding\r
1179         values from parsed xml: use '$val =& nex xmlrpcval("value")' for string values\r
1180         instead of '$val =& nex xmlrpcval("value", $xmlrpcString)'\r
1181 \r
1182         * xmlrpc.inc: fix change introduced 2005/01/30 moving call to curl_close()\r
1183         too early: it did not work on error situations\r
1184 \r
1185         * testsuite.php: fix name of testAddingTest method, renamed testErrosString\r
1186         into testErrorString and removed useless warning for register_globals=off case\r
1187 \r
1188 2005-02-27  Gaetano Giunta <giunta.gaetano@gmail.com>\r
1189 \r
1190         * xmlrpc.inc: do not echo XML parsing error to screen (it is already dumped\r
1191         into error log)\r
1192 \r
1193         * xmlrpc.inc: set hdrs field into response object in case of XML parsing error\r
1194         (uniform behaviour with other responses)\r
1195 \r
1196 2005-02-26  Gaetano Giunta <giunta.gaetano@gmail.com>\r
1197 \r
1198         * xmlrpc.inc: use global var $xmlrpcVersion as number for user agent string\r
1199 \r
1200         * xmlrpcs.inc: eliminate server side PHP warning and give back to caller\r
1201         a better error msg in case the called method exists but no signature matches\r
1202         the number of parameters\r
1203 \r
1204 2005-02-20  Gaetano Giunta <giunta.gaetano@gmail.com>\r
1205 \r
1206         * xmlrpc.inc: accept a + sign in front of floats / integers, since the spec\r
1207         clearly mentions it\r
1208 \r
1209         * xmlrpc.inc, xmlrpcs.inc: renamed function XmlEntities to xmlrpc_encode_entitites,\r
1210         to avoid using the same name as an array already defined\r
1211 \r
1212         * xmlrpc.inc: fix bug introduced with escaping of UTF8 chars in xmlrpc error\r
1213         responses: correct behaviour is to escape chars inside serialize(), not when\r
1214         calling the xmlrpcresp creator\r
1215 \r
1216         * testsuite.php: made test suite more friendly to modern PHP configs, allowing\r
1217         register_globals to be off and to set in the URL all testing parameters;\r
1218         added tests for newly introduced fixes; renamed existing tests acording to the\r
1219         docs inside phpunit.php (e.g. no subclass of TestCase should have a name\r
1220         starting with test...)\r
1221 \r
1222 2005-02-19  Gaetano Giunta <giunta.gaetano@gmail.com>\r
1223 \r
1224         * xmlrpc.inc: accept patch 683153 by mah0: if timeout is set, allow all socket\r
1225         operations to timeout at the given time, not only the socket connection\r
1226 \r
1227 2005-02-13  Gaetano Giunta <giunta.gaetano@gmail.com>\r
1228 \r
1229         * xmlrpc.inc: be tolerant to double values received in exponential notation:\r
1230         even though the spec forbids their usage PHP is fine with them\r
1231 \r
1232         * xmlrpc.inc: fix bug: new xmlrpcval('-1') was creating an empty value instead\r
1233         of a string value!\r
1234 \r
1235         * xmlrpc.inc, xmlrpcs.inc: fix the payload encoding changes introduced by\r
1236         Andres Salomon on 2004-03-17: sending named html entities inside an xml chunk\r
1237         makes it invalid, and thus renders the lib absolutely non-interoperable with\r
1238         any other xmlrpc implementation; moreover the current implementation only ever\r
1239         worked for non-ascii requests, while breaking client-parsing of responses\r
1240         containing non-ascii chars.\r
1241         The principle of using entities is preserved though, because it allows the\r
1242         client to send correct xml regardless of php internal charset encoding vs.\r
1243         xml request charset encoding, but using 'character references' instead.\r
1244 \r
1245         * xmlrpc.inc: encode (non-ascii) chars into charset entities also for error\r
1246         strings\r
1247 \r
1248         * xmlrpcs.inc: encode (non-ascii) chars into charset entities also for debug\r
1249         messages\r
1250 \r
1251         * xmlrpcs.inc: added 'Accept-Charset' header in http request to let the server\r
1252         know what kind of charset encoding we do expect to be used for responses\r
1253 \r
1254         * xmlrpc.inc, xmlrpcs.inc: explicitly tell the xml parser what charset the\r
1255         application expects to receive content in (notably strings). A new variable,\r
1256         $xmlrpc_internalencoding, (defaulting to ISO-8859-1) defines what charset the\r
1257         parser will use for passing back string xmlrpcvals to the PHP application\r
1258         (both server-side and client-side).\r
1259         This allows transparent usage of e.g. UTF-8 for encoding xml messages between\r
1260         server and client and ISO-8859-1 for internal string handling.\r
1261         ISO-8859-1 is, AFAIK, PHP internal encoding for all installs except\r
1262         mbstring-enabled ones.\r
1263 \r
1264 2005-02-12  Gaetano Giunta <giunta.gaetano@gmail.com>\r
1265 \r
1266         * xmlrpcs.inc: use '$var =& new(' construct to assign objects: on older versions\r
1267         of PHP objects are first built then copied over if the ampersand is omitted.\r
1268         Using it should make the code a little bit faster...\r
1269 \r
1270         * doc/xmlrpc.php: update lib version number, release date in preparation for\r
1271         next release\r
1272 \r
1273         * makefile: update lib version number in preparation for next release\r
1274 \r
1275         * xmlrpc.inc: split up parsing of xmlrpc INT and DOUBLE values. This allows\r
1276         finer-grained control over valid values: now the '.' char is not allowed\r
1277         any more inside int values.\r
1278 \r
1279         * xmlrpc.inc: fix for bug #560303: ints and doubles starting with '0' chars are\r
1280         no more parsed as octal values\r
1281 \r
1282 2005-01-30  Gaetano Giunta <giunta.gaetano@gmail.com>\r
1283 \r
1284         * xmlrpc.inc: Modifed last change by Miles: the functions php_xmlrpc_encode\r
1285         and php_xmlrpc_decode are now always defined, regardless of the existence of\r
1286         XMLRPC-EPI.  This allows users to start using these functions as the 'default'\r
1287         functions, and pave the way for future deprecation of xmlrpc_encode/encode\r
1288         while maintaining a stable API.\r
1289 \r
1290         * xmlrpc.inc: use '$var =& new(' construct to assign objects: on older versions\r
1291         of PHP objects are first built then copied over if the ampersand is omitted.\r
1292         Using it should make the code a little bit faster...\r
1293 \r
1294         * xmlrpc.inc: close curl connection as soon as possible for https requests:\r
1295         it could save some memory / resources.\r
1296 \r
1297         * xmlrpc.inc: added some extra info in the PHP error log message generated\r
1298         when an invalid xmlrpc integer/float value is encountered and we try to\r
1299         deserialize it.\r
1300 \r
1301         * xmlrpc.inc: added @ char before fsockopen to avoid echoing useless warnings\r
1302         when connection to server fails; added the same to avoid echoing warnings when\r
1303         deserializing data of an unknown type\r
1304 \r
1305         * xmlrpc.inc: reset the _xh array on each xmlrpc call: otherwise a new array\r
1306         member is created for each consecutive call and never destroyed, thus making it\r
1307         impossible to build an xmlrpc-client daemon beacuse of memory leaking.\r
1308 \r
1309         * xmlrpc.inc: declare global the variables that are used as 'constants',\r
1310         so that xmlrpc.inc will work even if it is included from within a function\r
1311 \r
1312 2004-12-27  Miles Lott <milos@groupwhere.org>\r
1313         * xmlrpc.inc: A new constant, XMLRPC_EPI_ENABLED, is defined depending on\r
1314         the existence of the function, xmlrpc_decode.  This function will exist in\r
1315         PHP if the extension, XMLRPC-EPI (http://xmlrpc-epi.sourceforge.net), is\r
1316         loaded.  It defines the functions xmlrpc_encode and xmlrpc_decode, which\r
1317         will conflict with functions of the same name in xmlrpc.inc.  If this\r
1318         extension is loaded, we instead use the names php_xmlrpc_encode and\r
1319         php_xmlrpc_decode.  Please look at server.php, testsuite.php, etc., for\r
1320         how this should be handled if using these functions.\r
1321 \r
1322 2003-04-17  Andres Salomon  <dilinger@voxel.net>\r
1323         * xmlrpc.inc: encode strings using htmlentities() instead of\r
1324         htmlspecialchars(), and add xmlrpc_html_entity_xlate().  This\r
1325         should fix longstanding issues with sending weird chars (from\r
1326         non-USASCII codesets like UTF-8, ISO-8859-1, etc) that caused\r
1327         the xml parser to choke.  Multi-byte chars are now changed to\r
1328         entities before sending, so that the xmlrpc server doesn't need\r
1329         to know the encoding type of the POST data.\r
1330         * xmlrpcs.inc: call xmlrpc_html_entity_xlate before parsing\r
1331         request packet.  The parser chokes on unknown entities (the\r
1332         entities created by htmlentities() are exactly that; html\r
1333         entities, not xml entities), so they must be converted from\r
1334         name form (&eacute;) to numerical form (&#233;).\r
1335 \r
1336 2003-01-12  Andres Salomon  <dilinger@voxel.net>\r
1337 \r
1338         * released 1.0.99.2.\r
1339         * Makefile: separate doc/Makefile a bit more from Makefile,\r
1340         and add clean rules.\r
1341 \r
1342 2003-01-10  Andres Salomon  <dilinger@voxel.net>\r
1343 \r
1344         * xmlrpc.inc: xmlrpcresp and parseResponse cleanups; variable\r
1345         name renames ('xv' to 'val', for example), type checking, and\r
1346         stricter default values.\r
1347         * xmlrpc.inc: fix xmlrpcresp's faultcode; return -1 for FAULT\r
1348         responses from the server whose faultcodes don't reflect any\r
1349         errors.\r
1350 \r
1351 2003-01-08  Andres Salomon  <dilinger@voxel.net>\r
1352 \r
1353         * xmlrpc.inc: rename $_xh[$parser]['ha'] to\r
1354         $_xh[$parser]['headers'].\r
1355         * xmlrpc.inc: fix bugs related to $_xh[$parser]['headers];\r
1356         some places treated this as an array, others as a scalar.\r
1357         Treat unconditionally as an array.  Also wrap header debugging\r
1358         output in PRE tags.\r
1359 \r
1360 2002-12-17  Andres Salomon  <dilinger@voxel.net>\r
1361 \r
1362         * released 1.0.99.\r
1363         * Makefile: changed the tarball format/dist rule to a more\r
1364         conventional form, as well as normal release updates.\r
1365         * xmlrpc.inc: added setSSLVerifyPeer and setSSLVerifyHost; as\r
1366         of curl 7.10, various certificate checks are done (by default).\r
1367         The default for CURLOPT_SSL_VERIFYHOST is to ensure the common\r
1368         name on the cert matches the provided hostname.  This breaks a\r
1369         lot of stuff, so allow users to override it.\r
1370         * doc/xmlrpc_php.sgml: updated documentation accordingly.\r
1371 \r
1372 2002-09-06  Geoffrey T. Dairiki  <dairiki@dairiki.org>\r
1373 \r
1374         Add support for system.multicall() to both the client\r
1375         and the server.\r
1376 \r
1377         * testsuite.php: Add new tests 'testServerMulticall',\r
1378         and 'testClientMulticall'.\r
1379 \r
1380         * xmlrpc.inc: Added new error messages for system.multicall().\r
1381         * xmlrpcs.inc: Added new procedure call system.multicall().\r
1382         See http://www.xmlrpc.com/discuss/msgReader$1208 for details.\r
1383 \r
1384         * xmlrpc.inc: Added system.multicall functionality to\r
1385         xmlrpc_client.  xmlrpc_client::send can now take an array of\r
1386         xmlrpcmsg's as an argument.  In that case it will attempt\r
1387         to execute the whole array of procure calls in a single\r
1388         HTTP request using system.multicall().  (If that attempt fails,\r
1389         then the calls will be excuted one at a time.)  The return\r
1390         value will be an array of xmlrpcresp's (or 0 upon transport\r
1391         failure.)\r
1392 \r
1393 2001-11-29  Edd Dumbill  <edd@usefulinc.com>\r
1394 \r
1395         * xmlrpc.inc: fixed problem with processing HTTP headers that\r
1396         broke any payload with more than one consecutive newline in it.\r
1397         also initialise the 'ac' array member to empty string at start.\r
1398         * testsuite.php: added unit test to exercise above bug\r
1399         * xmlrpcs.inc: fixed uninitialized variable $plist\r
1400 \r
1401 2001-09-25  Edd Dumbill  <edd@usefulinc.com>\r
1402 \r
1403         * xmlrpc.inc: applied urgent security fixes as identified by Dan\r
1404         Libby\r
1405 \r
1406 2001-08-27  Edd Dumbill  <edd@usefulinc.com>\r
1407 \r
1408         * xmlrpc.inc: Merged in HTTPS support from Justin Miller, with a\r
1409         few additions for better traceability of failure conditions. Added\r
1410         small fix from Giancarlo Pinerolo. Bumped rev to 1.0. Changed\r
1411         license to BSD license.\r
1412 \r
1413 2001-06-15  Edd Dumbill  <edd@usefulinc.com>\r
1414 \r
1415         * xmlrpcs.inc: Added \r into return MIME headers for server class\r
1416 \r
1417 2001-04-25  Edd Dumbill  <edd@usefulinc.com>\r
1418 \r
1419         * server.php: Added interop suite of methods.\r
1420 \r
1421 2001-04-24  Edd Dumbill  <edd@usefulinc.com>\r
1422 \r
1423         * testsuite.php: added in test case for string handling bug.\r
1424 \r
1425         * xmlrpc.inc: merged in minor fixes from G Giunta to fix\r
1426         noninitialization. Created new method, getval(), which includes\r
1427         experimental support for recreating nested arrays, from Giunta and\r
1428         Sofer. Fixed string handling bug where characters after </string>\r
1429         but before </value> weren't ignored. Added in support for native\r
1430         boolean type into xmlrpc_encode (Giunta).\r
1431 \r
1432         * xmlrpcs.inc: updated copyright notice\r
1433 \r
1434 2001-01-15  Edd Dumbill  <edd@usefulinc.com>\r
1435 \r
1436         * xmlrpc.inc: fixed bug with creation of booleans. Put checks in\r
1437         to ensure that numbers were really numeric. Fixed bug with\r
1438         non-escaping of dollar signs in strings.\r
1439 \r
1440         * testsuite.php: created test suite.\r
1441 \r
1442 2000-08-26  Edd Dumbill  <edd@usefulinc.com>\r
1443 \r
1444         * xmlrpcs.inc: added xmlrpc_debugmsg() function which outputs\r
1445         debug information in comments inside the return payload XML\r
1446 \r
1447         * xmlrpc.inc: merged in some changes from Dan Libby which fix up\r
1448         whitespace handling.\r
1449 \r
1450         * xmlrpcs.inc: added Content-length header on response (bug from\r
1451         Jan Varga <varga@utcru.sk>. This means you can no longer print\r
1452         during processing\r
1453 \r
1454         * xmlrpc.inc: changed ereg_replace to str_replace in several\r
1455         places (thanks to Dan Libby <dan@libby.com> for this).\r
1456 \r
1457         * xmlrpc.inc: added xmlrpc_encode() and xmlrpc_decode() from Dan\r
1458         Libby--these helper routines make it easier to work in native PHP\r
1459         data structures.\r
1460 \r
1461 2000-07-21  Edd Dumbill  <edd@usefulinc.com>\r
1462 \r
1463         * xmlrpc.inc: added xmlrpc_client::setCredentials method to pass\r
1464         in authorization information, and modified sendPayload* methods to\r
1465         send this OK. Thanks to Grant Rauscher for the impetus to do this.\r
1466         Also, made the client send empty <params></params> if there are no\r
1467         parameters set by the user.\r
1468 \r
1469         * doc/xmlrpc_php.sgml: updated documentation to reflect recent\r
1470         changes\r
1471 \r
1472 \r
1473 2000-07-18  Edd Dumbill  <edd@usefulinc.com>\r
1474 \r
1475         * server.php: added examples.invertBooleans method to server as a\r
1476         useful test method for boolean values.\r
1477 \r
1478         * xmlrpc.inc: rearranged the way booleans are handled to fix\r
1479         outstanding problems. Fixed calling addScalar() on arrays so it\r
1480         works. Finally fixed backslashification issues to remove the\r
1481         problem will dollar signs disappearing.\r
1482 \r
1483         * booltest.php: really fixed booleans this time.\r
1484 \r
1485 2000-06-03  Edd Dumbill  <edd@usefulinc.com>\r
1486 \r
1487         * xmlrpcs.inc: made signature verification more useful - now\r
1488         returns what it found was wrong\r
1489 \r
1490         * xmlrpc.inc: fixed bug with decoding dateTimes. Also fixed a bug\r
1491         which meant a PHP syntax error happened when attempting to receive\r
1492         empty arrays or structs. Also fixed bug with booleans always being\r
1493         interpreted as 'true'.\r
1494 \r
1495         * server.php: Added validator1 suite of tests to test against\r
1496         validator.xmlrpc.com\r
1497 \r
1498 \r
1499 2000-05-06  Edd Dumbill  <edd@usefulinc.com>\r
1500 \r
1501         * released 1.0b6\r
1502 \r
1503         * added test.pl and test.py, Perl and Python scripts that exercise\r
1504         server.php somewhat (but not a lot)\r
1505 \r
1506         * added extra fault condition for a non 200 OK response from the\r
1507         remote server.\r
1508 \r
1509         * added iso8601_encode() and iso8601_decode() to give some support\r
1510         for passing dates around. They translate to and from UNIX\r
1511         timestamps. Updated documentation accordingly.\r
1512 \r
1513         * fixed string backslashification -- was previously a little\r
1514         overzealous! new behavior is '\' --> '\\' and '"' -->\r
1515         '\"'. Everything else gets left alone.\r
1516 \r
1517 2000-04-12  Edd Dumbill  <edd@usefulinc.com>\r
1518 \r
1519         * updated and bugfixed the documentation\r
1520 \r
1521         * fixed base 64 encoding to only happen at serialize() time,\r
1522         rather than when a base64 value is created. This fixes the double\r
1523         encoding bug reported by Nicolay Mausz\r
1524         <castor@flying-dog.com>. The same approach ought to be taken with\r
1525         encoding XML entities in the data - this is a TODO.\r
1526 \r
1527         * integrated further code from Peter Kocks: used his new code for\r
1528         send(), adding a second, optional, parameter which is a timeout\r
1529         parameter to fsockopen()\r
1530 \r
1531 1999-10-11  Edd Dumbill  <edd@usefulinc.com>\r
1532 \r
1533         * added bug fixes from Peter Kocks <peter.kocks@baygate.com>\r
1534 \r
1535 1999-10-10  Edd Dumbill  <edd@usefulinc.com>\r
1536 \r
1537         * updated the documentation\r
1538 \r
1539 1999-10-08  Edd Dumbill  <edd@usefulinc.com>\r
1540 \r
1541         * added system.* methods and dispatcher, plus documentation\r
1542 \r
1543         * fixed bug which meant request::getNumParams was returning an\r
1544         incorrect value\r
1545 \r
1546         * added signatures into the dispatch map. This BREAKS\r
1547         COMPATIBILITY with previous releases of this code\r
1548 \r
1549 1999-08-18  Edd Dumbill  <edd@usefulinc.com>\r
1550 \r
1551         * made entity encoding and decoding transparent now on string\r
1552         passing.\r
1553 \r
1554         * de-globalised the globals in the parse routines, using an\r
1555         associative array to hold all parser state $_xh\r
1556 \r
1557         * changed default input encoding to be UTF-8 to match expectation\r
1558 \r
1559         * separated out parseResponse into parseResponse and\r
1560         parseResponseFile so that you can call parseResponse on a string\r
1561         if you have one handy\r
1562 \r
1563 1999-07-20  Edd Dumbill  <edd@usefulinc.com>\r
1564 \r
1565         * Moved documentation into Docbook format\r
1566 \r
1567 1999-07-19  Edd Dumbill  <edd@usefulinc.com>\r
1568 \r
1569         * Added an echo server into server.php and echotest.php, a client\r
1570         which will exercise the new echo routine.\r
1571 \r
1572         * Added test for no valid value returned: in this case will now\r
1573         throw the error "invalid payload"\r
1574 \r
1575         * Added serialize() method to xmlrpcresp to return a string with\r
1576         the response serialized as XML\r
1577 \r
1578         * Added automatic encoding and decoding for base64 types\r
1579 \r
1580         * Added setDebug() method to client to enable HTML output\r
1581         debugging in the client\r
1582 \r
1583 1999-07-08  Edd Dumbill  <edd@usefulinc.com>\r
1584 \r
1585         * Improved XML parse error reporting on the server side to send it\r
1586         back in a faultCode packet. expat errors now begin at 100\r
1587 \r
1588 1999-07-07  Edd Dumbill  <edd@usefulinc.com>\r
1589 \r
1590         * Changed the structmem and arraymem methods of xmlrpcval to always\r
1591         return xmlrpc vals whether they referred to scalars or complex\r
1592         types.\r
1593 \r
1594         * Added the server class and demonstrations\r
1595 \r
1596         * Fixed bugs in the XML parsing and reworked it\r