[PEAR-BUG] Bug #13237 [Fbk->NoF]: invalid return payload

[email protected]
Newsgroups php.pear.bugs
Message-ID <[email protected]>
Edit report at http://pear.php.net/bugs/bug.php?id=13237&edit=1

 ID:               13237
 Updated by:       [email protected]
 Reported By:      aris at delivopoulou dot gr
 Summary:          invalid return payload
-Status:           Feedback
+Status:           No Feedback
 Type:             Bug
 Package:          XML_RPC
 Operating System: windows  xp
 Package Version:  1.5.1
 PHP Version:      5.2.5
-Assigned To:      
+Assigned To:      danielc
 Roadmap Versions: 
 New Comment:

-Status:      Feedback
+Status:      No Feedback
-Assigned To:
+Assigned To: danielc



Previous Comments:
------------------------------------------------------------------------

[2010-01-08 03:11:38] danielc

-Status: Open
+Status: Feedback
Are the server script and client script both saved in UTF-8 format?  Is
the payload coming back actually UTF-8?  I have seen strange things
happen when they are not.  Perhaps try the setConvertPayloadEncoding()
methods in XML_RPC's Server.php and RPC.php.

------------------------------------------------------------------------

[2008-02-28 06:05:46] drq123

in XML/RPC/Server.php form the PEAR installation I disabled in the
createServerPayload function the <?xml starting sentence.
This fixed it....But nor kxmlrpc or the normal pear's parser accept this
line there...so it is a bug? must it be fixed?

------------------------------------------------------------------------

[2008-02-27 14:08:52] drq123

Description:
------------
see the code, the output is as it is supposed to be
but i get the error from the client side.


Test script:
---------------
function register($params) {
        $user = $params->getParam(0);
		$password=$params->getParam(1);
		
        // This error checking syntax was added in Release 1.3.0
        
        $val = new XML_RPC_Value("success", "string");
        
        return new XML_RPC_Response($val);
}

/*
 * Establish the dispatch map and XML_RPC server instance.
 */
$server = new XML_RPC_Server(
		array("perform_register" => array("function" => "register"))
		);

Expected result:
----------------
<?xml version="1.0" encoding="UTF-8"?>
<methodResponse>
<params>
<param>
<value><string>success</string></value>
</param>
</params>
</methodResponse>

Actual result:
--------------
<?xml version="1.0" encoding="UTF-8"?>
<methodResponse>
<params>
<param>
<value><string>success</string></value>
</param>
</params>
</methodResponse>
Error code: 2 Message: Invalid return payload: enable debugging to
examine incoming payload

------------------------------------------------------------------------


-- 
Edit this bug report at http://pear.php.net/bugs/bug.php?id=13237&edit=1
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.