Add destructor

This commit is contained in:
php-curl-class
2013-08-19 17:52:14 -07:00
parent a2cbbdbef0
commit 7e25366af9
+4
View File
@@ -80,6 +80,10 @@ class Curl {
return $this->error_code;
}
function __destruct() {
$this->close();
}
private $_cookies = array();
public $curl;