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