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."/bogusdir";
14
15var_dump(opendir($path));
16?>
17==DONE==
18--EXPECTF--
19Warning: opendir(ftp://localhost:%d/bogusdir): failed to open dir: FTP server reports 250 /bogusdir: No such file or directory
20 in %s on line %d
21bool(false)
22==DONE==
23