Home » Web Services » XML_RPC » Bug #3344
parsing error during eval
Details
| Submitted | 2005-02-01 11:49 UTC |
|---|---|
| From | tac at smokescreen dot org |
| Assigned | danielc |
| Status | Bogus |
| Package | XML_RPC |
| PHP Version | 5.0.3 |
| OS | Win NT |
| Roadmaps | (Not assigned) |
Comments
[2005-02-01 11:49 UTC] tac at smokescreen dot org
Description:
------------
A particular XML_RPC file doesn't parse correctly.
Reproduce code:
---------------
require_once "XML/RPC.php";
ini_set('error_reporting', E_ALL & ~E_NOTICE);
$xml = file_get_contents("http://www.pcartist.com/xml_rpc.xml");
$msg = new XML_RPC_Message("unused", array());
$msg->debug = 1;
$response = $msg->parseResponse ($xml);
Actual result:
--------------
Parse error: syntax error, unexpected ')' in c:\php\PEAR\XML\RPC.php(689) : eval()'d code on line 1
This is because the last part of the eval'd string is:
'auctionEnds' => new XML_RPC_Value("9.99", 'string'),
'makeItMinePrice' => )));
That is, the makeItMinePrice doesn't have an associated XML_RPC_Value.