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--EXPECTF--
18Warning: opendir(ftp://localhost:%d/bogusdir): Failed to open directory: FTP server reports 250 /bogusdir: No such file or directory
19 in %s on line %d
20bool(false)
21