cUrl Moved Away From Resource
Curl functions have moved from resource to objects in PHP 8.0. Instead of returning a resource, it now returns a CurlHandle object. Checks based on is_resource() must be upgraded, and are now dead code.
PHP code
<?php
var_dump(curl_init('https://www.php.net'));
?>
Before
resource(4) of type (curl)
After
object(CurlHandle)#1 (0) {
}
PHP version change
This behavior changed in 8.0.