Home » Web Services » XML_RPC2 » Bug #8108
Fatal Error: Call to undefined method XML_RPC2_FaultException::getFaultString()
Details
| Submitted | 2006-07-03 15:04 UTC |
|---|---|
| From | pag06 at laposte dot net |
| Assigned | sergiosgc |
| Status | Closed |
| Package | XML_RPC2 |
| PHP Version | 5.1.4 |
| OS | Windows XP |
| Roadmaps | (Not assigned) |
Comments
[2006-07-03 15:04 UTC] pag06 at laposte dot net
Description:
------------
When using the first sample code given in example in your documentation (for the Client), everything is OK as long as there's no exception thrown, but if any XML_RPC2_FaultException is raised, then I got this error :
"PHP Fatal error: Call to undefined method XML_RPC2_FaultException::getFaultStri
ng() in C:\Programs\php\test_xmlrpc.php on line 31"
Test script:
---------------
Use the first test script given in the XML_RPC2 documentation (client side), and just simply modify the name of the RPC method (e.g. sdfsdqf instead of info, or sdfsdqf instead of package. in the options) to do a little 'SABOTAGE' :-p
Expected result:
----------------
XML_RPC2_FaultException::getFaultString() should exist and return should the error message form the RPC SERVER (such as "no such RPC method")
Actual result:
--------------
PHP Fatal error: Call to undefined method XML_RPC2_FaultException::getFaultStri
ng() in C:\Programs\php\test_xmlrpc.php on line 31
[2006-12-02 17:44 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.