From 4029059f6eb7920dba66946391edc7b272e87f79 Mon Sep 17 00:00:00 2001 From: gggeek Date: Wed, 8 Feb 2023 17:30:53 +0000 Subject: [PATCH] drop deprecated calls from demo and co --- debugger/action.php | 20 ++++---- demo/client/getstatename.php | 2 +- demo/client/windowscharset.php | 2 +- demo/server/discuss.php | 2 +- demo/server/methodProviders/functions.php | 34 ++++++------- demo/server/methodProviders/testsuite.php | 6 +-- demo/server/methodProviders/validator1.php | 12 ++--- demo/server/methodProviders/wrapper.php | 2 +- demo/server/proxy.php | 16 +++---- demo/vardemo.php | 2 +- extras/benchmark.php | 56 +++++++++++----------- tests/09HTTPTest.php | 11 +++-- 12 files changed, 85 insertions(+), 80 deletions(-) diff --git a/debugger/action.php b/debugger/action.php index cc870758..326ea2f8 100644 --- a/debugger/action.php +++ b/debugger/action.php @@ -133,8 +133,8 @@ if ($action) { } if ($protocol == 2 || $protocol == 3) { - $client->setSSLVerifyPeer($verifypeer); - $client->setSSLVerifyHost($verifyhost); + $client->setOption(\PhpXmlRpc\Client::OPT_VERIFY_PEER, $verifypeer); + $client->setOption(\PhpXmlRpc\Client::OPT_VERIFY_HOST, $verifyhost); if ($cainfo) { $client->setCaCertificate($cainfo); } @@ -159,28 +159,28 @@ if ($action) { switch ($requestcompression) { case 0: - $client->request_compression = ''; + $client->setOption(\PhpXmlRpc\Client::OPT_REQUEST_COMPRESSION, ''); break; case 1: - $client->request_compression = 'gzip'; + $client->setOption(\PhpXmlRpc\Client::OPT_REQUEST_COMPRESSION, 'gzip'); break; case 2: - $client->request_compression = 'deflate'; + $client->setOption(\PhpXmlRpc\Client::OPT_REQUEST_COMPRESSION, 'deflate'); break; } switch ($responsecompression) { case 0: - $client->accepted_compression = ''; + $client->setOption(\PhpXmlRpc\Client::OPT_ACCEPTED_COMPRESSION, ''); break; case 1: - $client->accepted_compression = array('gzip'); + $client->setOption(\PhpXmlRpc\Client::OPT_ACCEPTED_COMPRESSION, array('gzip')); break; case 2: - $client->accepted_compression = array('deflate'); + $client->setOption(\PhpXmlRpc\Client::OPT_ACCEPTED_COMPRESSION, ('deflate')); break; case 3: - $client->accepted_compression = array('gzip', 'deflate'); + $client->setOption(\PhpXmlRpc\Client::OPT_ACCEPTED_COMPRESSION, array('gzip', 'deflate')); break; } @@ -586,7 +586,7 @@ if ($action) {

Changelog