Skip to content

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