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