[phpxmlrpc] Script working on 1.0.1 but not on 1.0.99

Alex Pagnoni alex@ampoliros.com
Fri, 10 Jan 2003 18:46:01 +0100


Hi all,

the 1.0.99 xmlrpc release doesn't work for me, while the previous ones wo=
rked=20
ok. Here follow a simple script, if you run it with the 1.0.1 release the=
=20
reply passes the xmlrpc_resp::FaultCode() check, while in 1.0.99 one it=20
doesn't.

Ideas?

Here's the test script:

<?php
include( 'xmlrpc.inc' );

$xmlrpc_client =3D new XmlRpc_Client( '/xmlrpc.php', 'www.syndic8.com', '=
80' );

echo "Start\n";
$xmlrpc_message =3D new XmlRpcMsg( 'syndic8.FindFeeds', array( new XmlRpc=
Val(=20
'amiga', 'string' ) ) );
$xmlrpc_resp =3D $xmlrpc_client->Send( $xmlrpc_message );

echo "Sent\n";
if ( $xmlrpc_resp )
{
    echo "Received reply\n";
    if ( !$xmlrpc_resp->FaultCode() )
    {
        echo "Reply is ok\n";
        $result =3D xmlrpc_decode( $xmlrpc_resp->Value() );
        print_r( $result );
    }
}
?>

--=20
Alex Pagnoni
Ampoliros Team - Project Leader - http://ampoliros.com/
SourceForge PHP Foundry guide - http://sourceforge.net/