PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Web Services » XML_RPC » Bug #3344

parsing error during eval

Details

Submitted2005-02-01 11:49 UTC
Fromtac at smokescreen dot org
Assigneddanielc
StatusBogus
PackageXML_RPC
PHP Version5.0.3
OSWin 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.