Home » Web Services » XML_RPC2 » Bug #7688
@xmlrpc.methodname is always ignored
Details
| Submitted | 2006-05-22 03:51 UTC |
|---|---|
| From | marques at displague dot com |
| Assigned | sergiosgc |
| Status | Closed |
| Package | XML_RPC2 |
| PHP Version | Irrelevant |
| Roadmaps | (Not assigned) |
Comments
[2006-05-22 03:51 UTC] marques at displague dot com
Description:
------------
PHPDoc attributes @xmlrpc.prefix and @xmlrpc.methodname, through introspection, are said to override the xmlrpc method names generated otherwise. This is not completely true, as @xmlrpc.methodname is always ignored because the regular expression that looks for it is wrong. It appears to have been copy/pasted from the @xmlrpc.prefix line.
Test script:
---------------
--- Method.php 2006-05-21 22:13:04.000000000 -0400
+++ /tmp/Method.php 2006-05-21 23:40:17.000000000 -0400
@@ -190,7 +190,7 @@
if ((strpos($doc, '@xmlrpc.prefix') === 0) && preg_match('/@xmlrpc.prefix( )*(.*)/', $doc, $matches)) {
$prefix = $matches[2];
}
- if ((strpos($doc, '@xmlrpc.methodname') === 0) && preg_match('/@xmlrpc.prefix( )*(.*)/', $doc, $matches)) {
+ if ((strpos($doc, '@xmlrpc.methodname') === 0) && preg_match('/@xmlrpc.methodname( )*(.*)/', $doc, $matches)) {
$methodname = $matches[2];
}
if (strpos($doc, '@param') === 0) { // Save doctag for usage later when filling parameters
[2006-05-23 16:57 UTC] sergiosgc at php dot net
This bug has been fixed in CVS.
If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET).
If this was a problem with the pear.php.net website, the change should be live shortly.
Otherwise, the fix will appear in the package's next release.
Thank you for the report and for helping us make PEAR better.
Thanks for the report. It should be ok now.