In PHP 8.0, Curl resources are changed to CurlHandle class objects. This changes DocBlock parameters and other areas where provided handles are checked with is_resource(), which now needs to account for the replaced CurlHandle class objects.
Why?
Because in PHP 8.0, Curl handles are no longer resources, and this libraries is_resource no longer return true for valid Curl handlers.
Example Usage
is_resource(curl_init()); // true in PHP < 8.0
is_resource(curl_init()); // false in PHP >= 8.0
Checklist
[ ] Updated CHANGELOG.md to describe BC breaks / deprecations | new feature | bugfix
[ ] Documentation pull request created (if not simply a bugfix)
What's in this PR?
In PHP 8.0, Curl resources are changed to CurlHandle class objects. This changes DocBlock parameters and other areas where provided handles are checked with
is_resource()
, which now needs to account for the replacedCurlHandle
class objects.Why?
Because in PHP 8.0, Curl handles are no longer resources, and this libraries
is_resource
no longer return true for valid Curl handlers.Example Usage
Checklist