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

Bug #1170 XML_RPC_Server can't parse request method name
Submitted: 2004-04-09 12:18 UTC
From: pash_ka at fonbet dot info Assigned: pajoye
Status: Closed Package: XML_RPC
PHP Version: Irrelevant OS:
Roadmaps: (Not assigned)    
Subscription  


 [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!

Comments

 [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.