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 garbag
as far as i understand it. The GC only cleans up resources that are no longer used/referenced. as whenever the curl variable fall out of scope, it'll be cleaned up. But that might only happen after the script has finished, or whenever the session is destroyed (depending on scope).
But to be on the safe side, just follow common sense.. close it when its no longer needed.