note 27992 added to function.xmlrpc-encode-request
| From: | kelly at seankelly dot biz | Date: | Sat, 28 Dec 2002 22:02:30 +0000 |
| Subject: | note 27992 added to function.xmlrpc-encode-request | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-41396@lists.php.net to get a copy of this message | ||
Binary strings (set with xmlrpc_set_type) go into a <base64>...</base64> block like
you'd expect. But after every 80th character, this function inserts the XML entity
" ", which is a Unicode newline, as if to cause a line-wrap, which is admittedly
silly.
Silly though it may be, it causes real problems for some XML-RPC servers, such as http://jakarta.apache.org/xmlrpc/ (nee Helma).
Stripping out those entities with something like
$req = preg_replace('/ /', '',
xmlrpc_encode_request("my.method", $args));
works around the problem.
--
http://www.php.net/manual/en/function.xmlrpc-encode-request.php
http://master.php.net/manage/user-notes.php?action=edit+27992
http://master.php.net/manage/user-notes.php?action=delete+27992
http://master.php.net/manage/user-notes.php?action=reject+27992