When is it necessary to close curl connection and release resources consumed by it?
Why do I ask this question, well quite simply because I was told, that PHP garbage collector does all of this and sometimes there is no need to close DB connection or call the __destuct
method to release resources.
Since, that moment I actually started to think about where do I need to call it then? At the moment I'm interested with that question since I writing a small library for curl and I'd like to understand when do I need to user curl_close()
function.
Thank you all for discussion and explanation of it.