[phpxmlrpc] xmlrpcs.php : a php warning fixed

Roberto Gerola roberto.gerola at speedtech.it
Sat Apr 10 12:52:56 BST 2004

At line 432 of xmlrpcs.php, php shows an annoying warning: "Undefined 
offset:  1"
The following piece of code fixes this little problem :

           // Check signature.
            if (isset($dmap[$methName]['signature']))
                $sig = $dmap[$methName]['signature'];
                $verSig = $this->verifySignature($m, $sig);
                $ok = $verSig[0];       
                if (!$ok)
                    // Didn't match.
                    $errstr = $verSig[1];
                    return new xmlrpcresp(0,
                    $xmlrpcstr['incorrect_params'] . ": ${errstr}");


eng. Roberto Gerola

Member of Italy Engineers Guild
Member of PMI (Project Management Institute)
Member of IWA (International Webmasters Association)

Email : roberto.gerola at speedtech.it
WWW : http://www.speedtech.it

PGP Public Key : http://www.speedtech.it/gpg/robertogerola_pubkey.asc

More information about the phpxmlrpc mailing list