Skip to content
This repository has been archived by the owner on May 22, 2019. It is now read-only.

FtpClient generates warning if ssl is to be used and server doesn't support it #10

Open
schultercrem opened this issue Oct 6, 2017 · 0 comments

Comments

@schultercrem
Copy link

I'm constructing FtpClient in this way:

$ftp = new FtpClient();
$ftp->connect('example.org', true, 21);
$ftp->login('foo', 'bar');

If server doesn't support SSL, FtpClient fails gracefully with exception:

Exception: Unable to list directory in FtpClient.php (line 225)

But it also generates a warning:

Warning: asort() expects parameter 1 to be array, boolean given in /.../src/Melihucar/FtpClient/FtpClient.php on line 222
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant