[phpxmlrpc-devel] Some more patches to the lib
Brought to you by:
ggiunta
From: Gaetano G. <giu...@se...> - 2004-01-28 13:28:50
|
here's some more (minor) patching: Use the gloabl variable with version = number to build HTTP headers in the response line 127 in xmlrpc.inc: $xmlrpcVresionMajor =3D '1.0'; $xmlrpcVersionMinor =3D '99'; $xmlrpcVersion=3D"$xmlrpcVresionMajor.xmlrpcVersionMinor "; line 514: global $xmlrpcerr, $xmlrpcstr, $xmlrpcVresionMajor; line 552: $op=3D "POST " . $this->path. " HTTP/1.0\r\nUser-Agent: PHP XMLRPC = $xmlrpcVresionMajor\r\n" . Bye Gaetano > -----Messaggio originale----- > Da: php...@li... > [mailto:php...@li...]Per conto=20 > di Gaetano > Giunta > Inviato: venerd=EC 23 gennaio 2004 16:31 > A: php...@li... > Oggetto: [phpxmlrpc-devel] I: Support for chunked-encoding and gzip or > deflate >=20 >=20 > It looks like Sourceforge is experienecing heavy traffic, and=20 > I've not been able to access it for a while. >=20 > So here's a little contribution (patches) to the lib I amde,=20 > starting from 1.0.99.2 baseline: >=20 > xmlrpcs.inc: > - use of =3D& new() assignment when creating objects instead of =3D = new() > - one possible cause of warning eliminated: verifysignature=20 > always returns an array >=20 > xmlrpc.inc: > - use of =3D& new() assignment when creating objects instead of =3D = new() > - add support for accepting chunked data (could possibly=20 > eliminate a long-standing bug we had with some xmlrpc server=20 > other that xmlrpc-php, missing the last 5 chars of the response) > - add support for accepting gzipped or deflated responses >=20 > The code for the last two points has not been thorougly=20 > tested, but it comes straight out of the nusoap lib, so I=20 > guess it's ok. >=20 > Feel free to play with it / comment. >=20 > p.s. sorry if some of these changes have already been put in=20 > the CVS version... >=20 > Bye > Gaetano >=20 |