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('tcp://127.0.0.1:12342');
9?>
10--INI--
11allow_url_fopen=1
12--FILE--
13<?php
14require __DIR__.'/../http/server.inc';
15
16$pid = http_server("tcp://127.0.0.1:12342", [__DIR__."/news.rss"]);
17
18$d = new DomDocument;
19$e = $d->load("http://127.0.0.1:12342/news.rss");
20echo "ALIVE\n";
21http_server_kill($pid);
22?>
23--EXPECT--
24ALIVE
25