1--TEST--
2ftp_mlsd() must not return false on empty directories
3--SKIPIF--
4<?php
5require 'skipif.inc';
6?>
7--FILE--
8<?php
9require 'server.inc';
10
11$ftp = ftp_connect('127.0.0.1', $port);
12if (!$ftp) die("Couldn't connect to the server");
13
14var_dump(ftp_login($ftp, 'user', 'pass'));
15
16var_dump(ftp_mlsd($ftp, 'emptydir'));
17var_dump(ftp_mlsd($ftp, 'bogusdir'));
18
19ftp_close($ftp);
20?>
21--EXPECT--
22bool(true)
23array(0) {
24}
25bool(false)
26