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

PHP8.0 - $ch to string #45

Open
przemyslaw-szustak opened this issue Dec 4, 2020 · 3 comments
Open

PHP8.0 - $ch to string #45

przemyslaw-szustak opened this issue Dec 4, 2020 · 3 comments

Comments

@przemyslaw-szustak
Copy link

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;

@marcushat
Copy link
Owner

marcushat commented Dec 4, 2020 via email

@Eng-saddam
Copy link

dears,
there are any update on this ? or how I can solve the problem ?
thanks <3

@Trelor
Copy link

Trelor commented Jan 14, 2022

dears, there are any update on this ? or how I can solve the problem ? thanks <3

IN rollingcurlx.class.php

Change Line 197 to: $ch_hash = spl_object_id($ch);
Change Line 204 to: $ch_hash = spl_object_id($ch);

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

No branches or pull requests

4 participants