From 7738461a542eae4a26c6253906843ce1aabe9add Mon Sep 17 00:00:00 2001 From: gggeek Date: Fri, 30 Jun 2017 23:54:00 +0100 Subject: [PATCH] fix last commit: remove warnings --- lib/xmlrpc.inc | 64 ++++++++++++++++++++++++------------------------- lib/xmlrpcs.inc | 16 ++++++------- 2 files changed, 40 insertions(+), 40 deletions(-) diff --git a/lib/xmlrpc.inc b/lib/xmlrpc.inc index 41dae8b..5afcc40 100644 --- a/lib/xmlrpc.inc +++ b/lib/xmlrpc.inc @@ -866,14 +866,6 @@ */ var $user_agent; - /** - * @deprecated - */ - function xmlrpc_client($path, $server='', $port='', $method='') - { - self::__construct($path, $server, $port, $method); - } - /** * @param string $path either the complete server URL or the PATH part of the xmlrc server URL, e.g. /xmlrpc/server.php * @param string $server the server name / ip address @@ -950,6 +942,14 @@ $this->user_agent = $GLOBALS['xmlrpcName'] . ' ' . $GLOBALS['xmlrpcVersion']; } + /** + * @deprecated + */ + function xmlrpc_client($path, $server='', $port='', $method='') + { + self::__construct($path, $server, $port, $method); + } + /** * Enables/disables the echoing to screen of the xmlrpc responses received * @param integer $in values 0, 1 and 2 are supported (2 = echo sent msg too, before received response) @@ -1966,14 +1966,6 @@ var $content_type = 'text/xml'; var $raw_data = ''; - /** - * @deprecated - */ - function xmlrpcresp($val, $fcode = 0, $fstr = '', $valtyp='') - { - self::__construct($val, $fcode, $fstr, $valtyp); - } - /** * @param mixed $val either an xmlrpcval obj, a php value or the xml serialization of an xmlrpcval (a string) * @param integer $fcode set it to anything but 0 to create an error response @@ -2022,6 +2014,14 @@ } } + /** + * @deprecated + */ + function xmlrpcresp($val, $fcode = 0, $fstr = '', $valtyp='') + { + self::__construct($val, $fcode, $fstr, $valtyp); + } + /** * Returns the error code of the response. * @return integer the error code of this response (0 for not-error responses) @@ -2135,14 +2135,6 @@ xmlrpc_encode_entitites($this->errstr, $GLOBALS['xmlrpc_internalencoding'], $cha var $debug=0; var $content_type = 'text/xml'; - /** - * @deprecated - */ - function xmlrpcmsg($meth, $pars=0) - { - self::__construct($meth, $pars); - } - /** * @param string $meth the name of the method to invoke * @param array $pars array of parameters to be passed to the method (xmlrpcval objects) @@ -2159,6 +2151,14 @@ xmlrpc_encode_entitites($this->errstr, $GLOBALS['xmlrpc_internalencoding'], $cha } } + /** + * @deprecated + */ + function xmlrpcmsg($meth, $pars=0) + { + self::__construct($meth, $pars); + } + /** * @access private */ @@ -2775,14 +2775,6 @@ xmlrpc_encode_entitites($this->errstr, $GLOBALS['xmlrpc_internalencoding'], $cha var $mytype=0; var $_php_class=null; - /** - * @deprecated - */ - function xmlrpcval($val=-1, $type='') - { - self::__construct($val, $type); - } - /** * @param mixed $val * @param string $type any valid xmlrpc type name (lowercase). If null, 'string' is assumed @@ -2841,6 +2833,14 @@ xmlrpc_encode_entitites($this->errstr, $GLOBALS['xmlrpc_internalencoding'], $cha } } + /** + * @deprecated + */ + function xmlrpcval($val=-1, $type='') + { + self::__construct($val, $type); + } + /** * Add a single php value to an (unitialized) xmlrpcval * @param mixed $val diff --git a/lib/xmlrpcs.inc b/lib/xmlrpcs.inc index 0ab6d54..24cba8c 100644 --- a/lib/xmlrpcs.inc +++ b/lib/xmlrpcs.inc @@ -493,14 +493,6 @@ */ var $user_data = null; - /** - * @deprecated - */ - function xmlrpc_client($dispMap=null, $serviceNow=true) - { - self::__construct($dispMap, $serviceNow); - } - /** * @param array $dispmap the dispatch map with definition of exposed services * @param boolean $servicenow set to false to prevent the server from running upon construction @@ -537,6 +529,14 @@ } } + /** + * @deprecated + */ + function xmlrpc_client($dispMap=null, $serviceNow=true) + { + self::__construct($dispMap, $serviceNow); + } + /** * Set debug level of server. * @param integer $in debug lvl: determines info added to xmlrpc responses (as xml comments) -- 2.43.0