classes/phing/system/io/InputStream.php
public function close()
    {
        if ($this->stream === null) {
            return;
        }
        if (false === @fclose($this->stream)) {
            // FAILED.
            $msg = "Cannot fclose " . $this->__toString() . " $php_errormsg";
            throw new IOException($msg);
        }
        $this->stream = null;
    }
public function close()
    {
        if ($this->stream === null) {
            return;
        }
        if (false === @fclose($this->stream)) {
            // FAILED.
            $msg = "Cannot fclose " . $this->__toString() . " $php_errormsg";
            throw new IOException($msg);
        }
        $this->stream = null;
    }
public function close ( ) { if ( $ this -> stream === null ) { return ; } if ( false === @ fclose ( $ this -> stream ) ) { // FAILED. $ msg = "Cannot fclose " . $ this -> __toString ( ) . " $php_errormsg" ; throw new IOException ( $ msg ) ; } $ this -> stream = null ; }
Closes stream.

@throws IOException if stream cannot be closed (note that calling close() on an already-closed stream will not raise an exception)
Closes stream .