Skip to content

Commit

Permalink
Add __destruct function to RollingCurlRequest.
Browse files Browse the repository at this point in the history
  • Loading branch information
LionsAd committed Aug 5, 2010
1 parent 9ec0bfe commit fa4ce35
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions RollingCurl.php
Expand Up @@ -33,6 +33,13 @@ function __construct($url, $method = "GET", $post_data = null, $headers = null,
$this->headers = $headers;
$this->options = $options;
}

/**
* @return void
*/
public function __destruct() {
unset($this->url, $this->method, $this->post_data, $this->headers, $this->options);
}
}

/**
Expand Down

0 comments on commit fa4ce35

Please sign in to comment.