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.
In PHP8
is_resource(curl_init())
returns false. This causes$this->client
to be overwritten each time$this->getClient()
is called e.g in thesend
method ofGloBeeCurlConnector
which results in an error since no URL is set whencurl_exec($this->getClient())
is called.This pull request adds
is_object()
to prevent$this->client
being overwritten in PHP8.Mentioned in this repo too - https://github.com/aliyun/aliyun-oss-php-sdk/pull/153
Tested and working on my server.