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