mirror of
https://github.com/php-curl-class/php-curl-class.git
synced 2026-08-30 20:20:53 +00:00
Add destructor
This commit is contained in:
@@ -80,6 +80,10 @@ class Curl {
|
||||
return $this->error_code;
|
||||
}
|
||||
|
||||
function __destruct() {
|
||||
$this->close();
|
||||
}
|
||||
|
||||
private $_cookies = array();
|
||||
|
||||
public $curl;
|
||||
|
||||
Reference in New Issue
Block a user