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

Fix is_resource returning false in php8 #19

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

willbrowningme
Copy link

In PHP8 is_resource(curl_init()) returns false. This causes $this->client to be overwritten each time $this->getClient() is called e.g in the send method of GloBeeCurlConnector which results in an error since no URL is set when curl_exec($this->getClient()) is called.

This pull request adds is_object() to prevent $this->client being overwritten in PHP8.

Mentioned in this repo too - aliyun/aliyun-oss-php-sdk#153

Tested and working on my server.

@willbrowningme
Copy link
Author

Is this repo still maintained?

Copy link

@Likho Likho left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This has been tested works as expected

@willbrowningme
Copy link
Author

Is there anything in particular blocking this from being merged?

@Eddie-Globee
Copy link

Hi @willbrowningme we're having a look at it. Will update you as it's merged in.

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

Successfully merging this pull request may close these issues.

None yet

4 participants