From: gggeek Date: Sat, 2 Jan 2021 14:22:00 +0000 (+0000) Subject: welcome 2021 X-Git-Tag: 4.5.1~9 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=6ea5909e5a078a496e6b43b525cac999ced0d2b1;p=plcapi.git welcome 2021 --- diff --git a/debugger/action.php b/debugger/action.php index 7a2b61dc..c7f88dec 100644 --- a/debugger/action.php +++ b/debugger/action.php @@ -1,7 +1,7 @@ encodeEntitites($data, $srcEncoding, $destEncoding); + return Charset::instance()->encodeEntities($data, $srcEncoding, $destEncoding); } function iso8601_encode($timeT, $utc=0) { - return PhpXmlRpc\Helper\Date::iso8601Encode($timeT, $utc); + return Date::iso8601Encode($timeT, $utc); } function iso8601_decode($iDate, $utc=0) { - return PhpXmlRpc\Helper\Date::iso8601Decode($iDate, $utc); + return Date::iso8601Decode($iDate, $utc); } function decode_chunked($buffer) { - return PhpXmlRpc\Helper\Http::decodeChunked($buffer); + return Http::decodeChunked($buffer); } function php_xmlrpc_decode($xmlrpcVal, $options=array()) { - $encoder = new PhpXmlRpc\Encoder(); + $encoder = new Encoder(); return $encoder->decode($xmlrpcVal, $options); } function php_xmlrpc_encode($phpVal, $options=array()) { - $encoder = new PhpXmlRpc\Encoder(); + $encoder = new Encoder(); return $encoder->encode($phpVal, $options); } function php_xmlrpc_decode_xml($xmlVal, $options=array()) { - $encoder = new PhpXmlRpc\Encoder(); + $encoder = new Encoder(); return $encoder->decodeXml($xmlVal, $options); } function guess_encoding($httpHeader='', $xmlChunk='', $encodingPrefs=null) { - return PhpXmlRpc\Helper\XMLParser::guessEncoding($httpHeader, $xmlChunk, $encodingPrefs); + return XMLParser::guessEncoding($httpHeader, $xmlChunk, $encodingPrefs); } function has_encoding($xmlChunk) { - return PhpXmlRpc\Helper\XMLParser::hasEncoding($xmlChunk); + return XMLParser::hasEncoding($xmlChunk); } function is_valid_charset($encoding, $validList) { - return PhpXmlRpc\Helper\Charset::instance()->isValidCharset($encoding, $validList); + return Charset::instance()->isValidCharset($encoding, $validList); } diff --git a/src/Wrapper.php b/src/Wrapper.php index bf624e46..c8540231 100644 --- a/src/Wrapper.php +++ b/src/Wrapper.php @@ -1,7 +1,7 @@