Heroku 的 php 版本是 7.3。当我尝试将任何文件从我的应用程序(部署在 heroku 中)上传到 ftp 时,它会在 FilesystemManager.php 中出现此错误 - Use of undefined constant FTP_BINARY - 假定为 'FTP_BINARY' (这将在 PHP 的未来版本中引发错误)。但是在php版本为7的localhost中,它工作正常。需要做什么来解决这个错误?我在这里看到了一个类似的问题,PHP 7.0.5: Use of undefined constant FTP_BINARY - 假定为 'FTP_BINARY'
但答案适用于 Windows 操作系统,我有点迷失如何在 heroku 云中实现解决方案,即根据接受的答案在 php 版本中打开 ftp。