diff --git a/NEWS.md b/NEWS.md index 7972392..d3dd388 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 3a56b9c..0d02144 100644 --- a/tests/07ClientTest.php +++ b/tests/07ClientTest.php @@ -17,6 +17,17 @@ public function set_up() $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 @@ public function testCustomHeaders($curlOpt) $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);