prepare v4.2.5
[m6w6/ext-http] / tests / client008.phpt
index f8b8774eb8edc1c7511b8c7961438470fd9d5a88..616a9e427ec5c36c9f7d06d3975d8ac36ca464e5 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(["pipelining" => true, "use_eventloop" => true]);
+       $client->configure(array("pipelining" => true, "use_eventloop" => true));
 
        $client->enqueue($request);
        $client->send();