note 27992 added to function.xmlrpc-encode-request

From: 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 "&#10;", 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('/&#10;/', '', 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

« previous php.notes (#41396) next »