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