classes/phing/system/io/OutputStream.php
public function close()
    {
        if ($this->stream === null) {
            return;
        }
        $this->flush();
        if (false === @fclose($this->stream)) {
            $metaData = stream_get_meta_data($this->stream);
            $resource = $metaData["uri"];
            $msg = "Cannot close " . $resource . ": $php_errormsg";
            throw new IOException($msg);
        }
        $this->stream = null;
    }
public function close()
    {
        if ($this->stream === null) {
            return;
        }
        $this->flush();
        if (false === @fclose($this->stream)) {
            $metaData = stream_get_meta_data($this->stream);
            $resource = $metaData["uri"];
            $msg = "Cannot close " . $resource . ": $php_errormsg";
            throw new IOException($msg);
        }
        $this->stream = null;
    }
public function close ( ) { if ( $ this -> stream === null ) { return ; } $ this -> flush ( ) ; if ( false === @ fclose ( $ this -> stream ) ) { $ metaData = stream_get_meta_data ( $ this -> stream ) ; $ resource = $ metaData [ "uri" ] ; $ msg = "Cannot close " . $ resource . ": $php_errormsg" ; throw new IOException ( $ msg ) ; } $ this -> stream = null ; }
Closes attached stream, flushing output first.

@throws IOException if cannot close stream (note that attempting to close an already closed stream will not raise an IOException)
@return void
Closes attached stream flushing output first .