update tests for newer libcurl
[m6w6/ext-http] / tests / client008.phpt
index 98fc8f8aebc34d9da458bbf1a252a10f208b8e83..c544cb5d218fbb0f076e4932a7256bc016d86fba 100644 (file)
@@ -1,9 +1,12 @@
 --TEST--
-client features
+client pipelining
 --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
@@ -18,7 +21,7 @@ server("pipeline.inc", function($port, $stdin) {
        $request = new http\Client\Request("GET", "http://localhost:$port");
        
        $client = new http\Client();
-       $client->configure(array("pipelining" => true, "use_eventloop" => true));
+       $client->configure(array("pipelining" => false, "use_eventloop" => true));
 
        $client->enqueue($request);
        $client->send();