-## 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
$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';
$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);