PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Web Services » XML_RPC » Bug #1170

XML_RPC_Server can't parse request method name

Details

Submitted2004-04-09 12:18 UTC
Frompash_ka at fonbet dot info
Assignedpajoye
StatusClosed
PackageXML_RPC
PHP VersionIrrelevant
Roadmaps(Not assigned)

Comments

[2004-04-09 12:18 UTC] pash_ka at fonbet dot info

Description:
------------
There is a problem wtih XML_PPC_Server.
In it's parseRequest() function it initializes the
$XML_RPC_xh[$parser] array, but
$XML_RPC_xh[$parser]['ac']
is still NOT SET.
So during parsing, in the XML_RPC_cd it is stll empty.
Then this code (which man can find at
http://cvs.php.net/co.php/pear/XML_RPC/RPC.php?r=1.21#322 )

// replace characters that eval would
// do special things with
if (isset($XML_RPC_xh[$parser]['ac'])) {
$XML_RPC_xh[$parser]['ac'] .= str_replace('$', '\$',
str_replace('"', '\"', str_replace(chr(92),
$XML_RPC_backslash, $data)));
} else {
$XML_RPC_xh[$parser]['ac'] = '';
}

is executed, it will ALWAYS set
$XML_RPC_xh[$parser]['ac'] = '';

So, it wil ALWAYS fail to find requested method!

[2004-04-09 12:39 UTC] pash_ka at fonbet dot info

Just found that this bug was introduced at version 1.20, as a bugfix for bug #382 http://pear.php.net/bugs/bug.php?id=382

I've posted my version of bugfix there.

[2004-05-26 16:02 UTC] bmansion at mamasam dot com

I confirm the bug and the patch.

This bug caused all my applications to stop working.

[2004-05-31 17:25 UTC] pierre at dotgeek dot org

This bug has been fixed in CVS.

In case this was a documentation problem, the fix will show up at the
end of next Sunday (CET) on pear.php.net.

In case this was a pear.php.net website problem, the change will show
up on the website in short time.

Thank you for the report, and for helping us make PEAR better.