Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FTP Library and PHP 8.1 #2484

Closed
mithra62 opened this issue Oct 29, 2022 · 0 comments
Closed

FTP Library and PHP 8.1 #2484

mithra62 opened this issue Oct 29, 2022 · 0 comments

Comments

@mithra62
Copy link
Contributor

In PHP 8.1, the ftp_connect function was changed to return an instance of FTP\Connection instead of the previous "resource" other versions returned. Within the FTP library though, it only checks for a resource. You can read more on that here:
https://www.php.net/manual/en/function.ftp-connect

And to verify the issue, here (in 6.x):

if (! is_resource($this->conn_id)) {

And here (in 7.x):

if (! is_resource($this->conn_id)) {

A simple conditional should suffice, I imagine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant