1up-lab / OneupFlysystemBundle

A Flysystem integration for your Symfony projects.
MIT License
634 stars 118 forks source link

Check if FTP extension is loaded if ftp is used #118

Closed ghost closed 7 years ago

ghost commented 7 years ago

I got this error:

 Notice: Use of undefined constant FTP_BINARY - assumed 'FTP_BINARY' 

Issue was that the php extension ftp.so was not loaded. I use PHP 7.0.13. I think this bundle should include a check to only allow usage of the ftp feature if the "ftp.so" extension is loaded - otherwise it should throw a better understanding error message.

piwi91 commented 7 years ago

Also an issue for me because we don't use an FTP connection, we don't include the FTP extension

sonu27 commented 7 years ago

Issue for me too.

amici commented 7 years ago

An issue for anybody with PHP7 that didn't explicitly load the FTP module.

bytehead commented 7 years ago

Fixed by #128