projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
update tests for newer libcurl
[m6w6/ext-http]
/
tests
/
client008.phpt
diff --git
a/tests/client008.phpt
b/tests/client008.phpt
index 3f5641fdf040dd1d8ca9e1e8a15e9cf42444bccc..c544cb5d218fbb0f076e4932a7256bc016d86fba 100644
(file)
--- a/
tests/client008.phpt
+++ b/
tests/client008.phpt
@@
-1,9
+1,12
@@
--TEST--
--TEST--
-client
configuration
+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(array("pipelining" =>
tru
e, "use_eventloop" => true));
+ $client->configure(array("pipelining" =>
fals
e, "use_eventloop" => true));
$client->enqueue($request);
$client->send();
$client->enqueue($request);
$client->send();