Simple question; I'm doing the following in an abstract PHP class of mine, but I have no idea whether it's actually being called/doing anything:
abstract class Curl {
protected $curl;
public function __construct()
{
$this->curl = curl_init();
}
public function __destruct()
{
curl_close($this->curl);
}
}
I've read various online posts about whether __destruct actually gets called, so I'm wondering if this is something I should be doing?