From cf05b0a264a73fcd1c76aeb0e264e3ae0888c2ed Mon Sep 17 00:00:00 2001 From: gggeek Date: Wed, 1 Feb 2023 17:25:05 +0000 Subject: [PATCH] update demos to avoid access to private client properties --- demo/client/introspect.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/demo/client/introspect.php b/demo/client/introspect.php index 8349dd19..17dfe116 100644 --- a/demo/client/introspect.php +++ b/demo/client/introspect.php @@ -25,7 +25,7 @@ $client = new Client(XMLRPCSERVER); $client->setOption(Client::OPT_RETURN_TYPE, XMLRPCParser::RETURN_PHP); // First off, let's retrieve the list of methods available on the remote server -output("

methods available at http://" . $client->server . $client->path . "

\n"); +output("

methods available at http://" . $client->getUrl(PHP_URL_HOST) . $client->getUrl(PHP_URL_PATH) . "

\n"); $req = new Request('system.listMethods'); $resp = $client->send($req); -- 2.47.0