1--TEST-- 2Testing ftp_mlsd returns false on server error 3--CREDITS-- 4Andreas Treichel <gmblar+github [at] gmail [dot] com> 5--EXTENSIONS-- 6ftp 7pcntl 8--FILE-- 9<?php 10require 'server.inc'; 11 12$ftp = ftp_connect('127.0.0.1', $port); 13ftp_login($ftp, 'user', 'pass'); 14if (!$ftp) die("Couldn't connect to the server"); 15 16var_dump(ftp_mlsd($ftp, 'no_exists/')); 17?> 18--EXPECT-- 19bool(false) 20