-
Notifications
You must be signed in to change notification settings - Fork 3
[BUG] After closing the cURL-handle it can not be used with curl_error #1
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
Comments
Btw. please also add the error code, like so:
Also it would be helpful to somehow indicate, that this is an error returned by cURL, because cURL in PHP does a really bad job of revealing of who issued the error. I fixed the code like so:
... but a
Thanks! |
thanks for reporting @estebanthebad will fix asap in the next release but im quite busy with other stuff atm - feel free to open a pull request on your own though :) |
@matthiez Does this problem still persist? Because |
Uh oh!
There was an error while loading. Please reload this page.
https://github.com/sms77io/php-client/blob/ec0339d72bcdfa930b80ab1c8cd2e2838b944d46/src/BaseClient.php#L97-L102
PHP 7.4.24
curl_error needs to be called before curl_close.
Or the warning 'curl_error(): supplied resource is not a valid cURL handle resource' and subsequently an exception 'Uncaught Error: Wrong parameters for UnexpectedValueException' (as it is not a string) is thrown.
It seems you put the code upside down in that spot. 'Found that bug when curl wanted to complain about missing SSL klimborium.
The text was updated successfully, but these errors were encountered: