Skip to content

Commit 24b7bd4

Browse files
committed
add release date
1 parent 4844675 commit 24b7bd4

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

NEWS.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
## XML-RPC for PHP version 4.11 - UNRELEASED
1+
## XML-RPC for PHP version 4.11 - 2024/9/7
22

3-
* improved: compatibility with not-yet-released PHP version 8.4
3+
* new: added new Client option `Client::OPT_EXTRA_HEADERS`, useful to set custom HTTP headers
44

5-
* improved: added new option `Client::OPT_EXTRA_HEADERS`, useful to set custom HTTP headers
5+
* improved: compatibility with not-yet-released PHP version 8.4
66

77

88
## XML-RPC for PHP version 4.10.4 - 2024/06/27

tests/07ClientTest.php

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,17 @@ public function set_up()
1717
$this->client = $this->getClient();
1818
}
1919

20+
public function getAvailableUseCurlOptions()
21+
{
22+
$opts = array(\PhpXmlRpc\Client::USE_CURL_NEVER);
23+
if (function_exists('curl_init'))
24+
{
25+
$opts[] = \PhpXmlRpc\Client::USE_CURL_ALWAYS;
26+
}
27+
28+
return array($opts);
29+
}
30+
2031
public function test404()
2132
{
2233
$this->client->path = '/NOTEXIST.php';
@@ -115,17 +126,6 @@ public function testCustomHeaders($curlOpt)
115126
$this->assertArrayHasKey('X-Pxr-Test', $ro->scalarVal(), "Testing with curl mode: $curlOpt");
116127
}
117128

118-
public function getAvailableUseCurlOptions()
119-
{
120-
$opts = array(\PhpXmlRpc\Client::USE_CURL_NEVER);
121-
if (function_exists('curl_init'))
122-
{
123-
$opts[] = \PhpXmlRpc\Client::USE_CURL_ALWAYS;
124-
}
125-
126-
return array($opts);
127-
}
128-
129129
public function testgetUrl()
130130
{
131131
$m = $this->client->getUrl(PHP_URL_SCHEME);

0 commit comments

Comments
 (0)