Back to Stream class

Method __destruct

public
__destruct
()
Destructor
Since
  • 1.7.0
Class: Stream
Project: Joomla

Method __destruct - Source code

/**
 * Destructor
 *
 * @since   1.7.0
 */
public function __destruct()
{
    // Attempt to close on destruction if there is a file handle
    if ($this->fh) {
        @$this->close();
    }
}