Skip to content

PHP8.0 - $ch to string #45

@przemyslaw-szustak

Description

@przemyslaw-szustak

In PHP 8.0 curl_init() return CurlHandle instance now; previously, a resource was returned so you can't (string) $ch.
I don't know is it correct (because spl_object_id can be reused), but I changed It to:
$ch_hash = is_object($ch) ? (string)spl_object_id($ch) : (string) $ch;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions