PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Web Services » XML_RPC » Bug #2628

XML_RPC_Server doesn't parse XML without carriage returns correctly.

Details

Submitted2004-10-27 11:11 UTC
Fromglideraerobatics at hotmail dot com
StatusBogus
PackageXML_RPC
PHP Version4.3.9
OSLinux
Roadmaps(Not assigned)

Comments

[2004-10-27 11:11 UTC] glideraerobatics at hotmail dot com

Description:
------------
XMLRPC method call's without carriage returns result in this fault response:

<methodResponse>
<fault>
<value>
<struct>
<member>
<name>faultCode</name>
<value><int>1</int></value>
</member>
<member>
<name>faultString</name>
<value><string>Unknown method</string></value>
</member>
</struct>
</value>
</fault>
</methodResponse>

Reproduce code:
---------------
This method call will work:
<?xml version="1.0" encoding="UTF-8"?>
<methodCall>
<methodName>getCustomerTemplates</methodName>
<params>
<param>
<value>
<int>1056</int>
</value>
</param>
</params>
</methodCall>

This same method call without the CR's won't work:
<?xml version="1.0" encoding="UTF-8"?><methodCall><methodName>getCustomerTemplates</methodName><params><param><value><int>1056</int></value></param></params></methodCall>

Expected result:
----------------
See above.

Actual result:
--------------
See above.