wrapped a couple functions in if statements because they are now part of new versions of PHP

This commit is contained in:
seek3r 2003-05-10 08:53:43 +00:00
parent ebc98519ce
commit 550d17d454

View File

@ -470,7 +470,9 @@
* *
* author: Dan Libby (dan@libby.com) *
****************************************************************/
function xmlrpc_decode($xmlrpc_val)
if (!function_exists('xmlrpc_decode'))
{
function xmlrpc_decode($xmlrpc_val, $encoding = '')
{
$kind = @$xmlrpc_val->kindOf();
@ -501,6 +503,7 @@
return $arr;
}
}
}
/****************************************************************
* xmlrpc_encode takes native php types and encodes them into *
@ -514,6 +517,8 @@
* *
* author: Dan Libby (dan@libby.com) *
****************************************************************/
if (!function_exists('xmlrpc_encode'))
{
function xmlrpc_encode($php_val)
{
$type = gettype($php_val);
@ -552,6 +557,7 @@
}
return $xmlrpc_val;
}
}
// listMethods: either a string, or nothing
$GLOBALS['_xmlrpcs_listMethods_sig'] = array(array(xmlrpcArray, xmlrpcString), array(xmlrpcArray));