From: gggeek Date: Sat, 7 Sep 2024 14:37:02 +0000 (+0000) Subject: add release date X-Git-Tag: 4.11.0~2 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=24b7bd473e7182735112ff41696256a57d32482b;p=plcapi.git add release date --- diff --git a/NEWS.md b/NEWS.md index 79723929..d3dd3880 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,8 +1,8 @@ -## XML-RPC for PHP version 4.11 - UNRELEASED +## XML-RPC for PHP version 4.11 - 2024/9/7 -* improved: compatibility with not-yet-released PHP version 8.4 +* new: added new Client option `Client::OPT_EXTRA_HEADERS`, useful to set custom HTTP headers -* improved: added new option `Client::OPT_EXTRA_HEADERS`, useful to set custom HTTP headers +* improved: compatibility with not-yet-released PHP version 8.4 ## XML-RPC for PHP version 4.10.4 - 2024/06/27 diff --git a/tests/07ClientTest.php b/tests/07ClientTest.php index 3a56b9c9..0d021447 100644 --- a/tests/07ClientTest.php +++ b/tests/07ClientTest.php @@ -17,6 +17,17 @@ class ClientTest extends PhpXmlRpc_ServerAwareTestCase $this->client = $this->getClient(); } + public function getAvailableUseCurlOptions() + { + $opts = array(\PhpXmlRpc\Client::USE_CURL_NEVER); + if (function_exists('curl_init')) + { + $opts[] = \PhpXmlRpc\Client::USE_CURL_ALWAYS; + } + + return array($opts); + } + public function test404() { $this->client->path = '/NOTEXIST.php'; @@ -115,17 +126,6 @@ class ClientTest extends PhpXmlRpc_ServerAwareTestCase $this->assertArrayHasKey('X-Pxr-Test', $ro->scalarVal(), "Testing with curl mode: $curlOpt"); } - public function getAvailableUseCurlOptions() - { - $opts = array(\PhpXmlRpc\Client::USE_CURL_NEVER); - if (function_exists('curl_init')) - { - $opts[] = \PhpXmlRpc\Client::USE_CURL_ALWAYS; - } - - return array($opts); - } - public function testgetUrl() { $m = $this->client->getUrl(PHP_URL_SCHEME);