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

BUG Don't ignore curl errors #55

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tractorcow
Copy link

Ignoring connection errors returned by curl_exec() can have unexpected consequences. This fix ensures that all errors are correctly reported.

@tractorcow
Copy link
Author

Sorry there was a lot of trailing whitespace in the source file.

https://github.com/zoho/zcrm-php-sdk/pull/55/files?diff=unified&w=1

@Tejes
Copy link

Tejes commented Jul 22, 2020

This is something that bothered me as well. Although I would store curl_error and curl_errno in a variable, call curl_close and then throw, because this way the code leaks. That can be a problem in a continuously running job. Also it would be nice to make the same modifications in src/oauth/utility/ZohoOAuthHTTPConnector.php as well.

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

Successfully merging this pull request may close these issues.

2 participants