add release date
authorgggeek <giunta.gaetano@gmail.com>
Sat, 7 Sep 2024 14:37:02 +0000 (14:37 +0000)
committergggeek <giunta.gaetano@gmail.com>
Sat, 7 Sep 2024 14:37:02 +0000 (14:37 +0000)
NEWS.md
tests/07ClientTest.php

diff --git a/NEWS.md b/NEWS.md
index 7972392..d3dd388 100644 (file)
--- 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
index 3a56b9c..0d02144 100644 (file)
@@ -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);