projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
gh-actions: ignore E_DEPRECATED for master
[m6w6/ext-http]
/
tests
/
client008.phpt
diff --git
a/tests/client008.phpt
b/tests/client008.phpt
index f8b8774eb8edc1c7511b8c7961438470fd9d5a88..616a9e427ec5c36c9f7d06d3975d8ac36ca464e5 100644
(file)
--- a/
tests/client008.phpt
+++ b/
tests/client008.phpt
@@
-1,9
+1,12
@@
--TEST--
--TEST--
-client
features
+client
pipelining
--SKIPIF--
<?php
include "skipif.inc";
skip_client_test();
--SKIPIF--
<?php
include "skipif.inc";
skip_client_test();
+if (version_compare(http\Client\Curl\Versions\CURL, "7.62.0", ">=")) {
+ die("skip CURL_VERSION >= 7.62 -- pipelining disabled\n");
+}
?>
--FILE--
<?php
?>
--FILE--
<?php
@@
-18,7
+21,7
@@
server("pipeline.inc", function($port, $stdin) {
$request = new http\Client\Request("GET", "http://localhost:$port");
$client = new http\Client();
$request = new http\Client\Request("GET", "http://localhost:$port");
$client = new http\Client();
- $client->configure(
["pipelining" => true, "use_eventloop" => true]
);
+ $client->configure(
array("pipelining" => true, "use_eventloop" => true)
);
$client->enqueue($request);
$client->send();
$client->enqueue($request);
$client->send();