Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.1.5

Bug #10231 XML_RPC2::Client doesn't decode body with correct encoding
Submitted: 2007-03-01 15:43 UTC
From: work at carewolf dot com Assigned: sergiosgc
Status: Closed Package: XML_RPC2 (version 1.0.0)
PHP Version: 5.2.1 OS:
Roadmaps: (Not assigned)    
Subscription  


 [2007-03-01 15:43 UTC] work at carewolf dot com (Allan Sandfeld)
Description: ------------ When issuing XML-RPC calls the data is transmitted with the correct encoding, but the result is decoded incorrectly. Patch follows

Comments

 [2007-03-01 15:45 UTC] work at carewolf dot com
diff -Naur Backend.old/Xmlrpcext/Client.php Backend/Xmlrpcext/Client.php --- Backend.old/Xmlrpcext/Client.php 2007-03-01 16:34:48.000000000 +0100 +++ Backend/Xmlrpcext/Client.php 2007-03-01 16:35:16.000000000 +0100 @@ -108,7 +108,7 @@ if ($this->debug) { $this->displayDebugInformations___($request, $body); } - $result = xmlrpc_decode($body); + $result = xmlrpc_decode($body, $this->encoding); if ($result === false) { if ($this->debug) { print "XML_RPC2_Exception : unable to decode response !";
 [2007-03-02 02:31 UTC] sergiosgc at php dot net (Sérgio Carvalho)
Thanks for the patch. I've applied it to CVS and will release on the next version.
 [2012-08-30 12:28 UTC] sailer (Michio Sawano)
Is this patch already implemented in the latest XML_RPC2? i.e. 1.1.1?