restore php-5.3 compatibility
[m6w6/ext-http] / tests / helper / pipeline.inc
index 815b46339b672574284138ec976cf8da0b472827..b7175c109fac1b24d4f4a31e000e08cda288ae4d 100644 (file)
@@ -3,7 +3,8 @@
 include "server.inc";
 
 function respond($client, $msg) {
-       (new http\Env\Response)->setEnvRequest($msg)
+       $r = new http\Env\Response;
+       $r->setEnvRequest($msg)
                ->setHeader("X-Req", $msg->getRequestUrl())
                ->send($client);
 }