1--TEST--
2opendir() with 'ftp://' stream.
3--SKIPIF--
4<?php
5if (array_search('ftp',stream_get_wrappers()) === FALSE) die("skip ftp wrapper not available.");
6if (!function_exists('pcntl_fork')) die("skip pcntl_fork() not available.");
7?>
8--FILE--
9<?php
10
11require __DIR__ . "/../../../ftp/tests/server.inc";
12
13$path="ftp://localhost:" . $port."/";
14
15$ds=opendir($path);
16var_dump($ds);
17
18while ($fn=readdir($ds)) {
19      var_dump($fn);
20}
21
22closedir($ds);
23?>
24==DONE==
25--EXPECTF--
26resource(%d) of type (stream)
27string(5) "file1"
28string(5) "file1"
29string(3) "fil"
30string(4) "b0rk"
31==DONE==
32