lib/classes/Swift/Transport/StreamBuffer.php
public function terminate()
    {
        if (isset($this->stream)) {
            switch ($this->params['type']) {
                case self::TYPE_PROCESS:
                    fclose($this->in);
                    fclose($this->out);
                    proc_close($this->stream);
                    break;
                case self::TYPE_SOCKET:
                default:
                    fclose($this->stream);
                    break;
            }
        }
        $this->stream = null;
        $this->out = null;
        $this->in = null;
    }
public function terminate()
    {
        if (isset($this->stream)) {
            switch ($this->params['type']) {
                case self::TYPE_PROCESS:
                    fclose($this->in);
                    fclose($this->out);
                    proc_close($this->stream);
                    break;
                case self::TYPE_SOCKET:
                default:
                    fclose($this->stream);
                    break;
            }
        }
        $this->stream = null;
        $this->out = null;
        $this->in = null;
    }
public function terminate ( ) { if ( isset ( $ this -> stream ) ) { switch ( $ this -> params [ 'type' ] ) { case self :: TYPE_PROCESS : fclose ( $ this -> in ) ; fclose ( $ this -> out ) ; proc_close ( $ this -> stream ) ; break ; case self :: TYPE_SOCKET : default : fclose ( $ this -> stream ) ; break ; } } $ this -> stream = null ; $ this -> out = null ; $ this -> in = null ; }
Perform any shutdown logic needed.
Perform any shutdown logic needed .