restore php-5.3 compatibility
[m6w6/ext-http] / tests / client025.phpt
index 18c5095cdf01d8289f4b61991aea2d3805db903c..866cd2e1502f8e0fa629dac64f40b17ed693c0f5 100644 (file)
@@ -14,7 +14,7 @@ echo "Test\n";
 server("proxy.inc", function($port) {
        $client = new http\Client;
        $request = new http\Client\Request("PUT", "http://localhost:$port");
-       $request->setOptions(["resume" => 1, "expect_100_timeout" => 0]);
+       $request->setOptions(array("resume" => 1, "expect_100_timeout" => 0));
        $request->getBody()->append("123");
        echo $client->enqueue($request)->send()->getResponse();
 });