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