1--TEST--
2http-stream test
3--SKIPIF--
4<?php
5if (getenv("SKIP_SLOW_TESTS")) die("skip slow test");
6if (!extension_loaded("dom")) die("skip dom extension is not present");
7require __DIR__.'/../http/server.inc';
8http_server_skipif();
9--INI--
10allow_url_fopen=1
11--FILE--
12<?php
13require __DIR__.'/../http/server.inc';
14
15['pid' => $pid, 'uri' => $uri] = http_server([__DIR__."/news.rss"]);
16
17$d = new DomDocument;
18$e = $d->load("$uri/news.rss");
19echo "ALIVE\n";
20http_server_kill($pid);
21--EXPECT--
22ALIVE
23