public function Stream::__destruct

Closes the stream when the helper is destructed

File

drupal/core/vendor/guzzle/stream/Guzzle/Stream/Stream.php, line 66

Class

Stream
PHP stream implementation

Namespace

Guzzle\Stream

Code

public function __destruct() {
  if (is_resource($this->stream)) {
    fclose($this->stream);
  }
}