5.3 compatibility
[m6w6/ext-http] / tests / gh-issue12.phpt
index 07215863ef6768c5d2de2a1668b4f7f5355ae630..8b2e3787ef50769a9e98db89c1478e693371def3 100644 (file)
@@ -14,7 +14,8 @@ $urls = array(
 
 foreach ($urls as $url) {
        try {
-               (new http\Client\Request)->setRequestUrl($url);
+               $c = new http\Client\Request;
+               $c->setRequestUrl($url);
                printf("OK: %s\n", $url);
        } catch (Exception $e) {
                printf("%s\n", $e->getMessage());