src/core/framework/core/3rdparty/ezcomponents/Mail/src/transports/file/file_set.php
private function openFile( $isFirst = false )
    {
        // cleanup file pointer if needed
        if ( $this->fp != null )
        {
            fclose( $this->fp );
            $this->fp = null;
        }

        // open the new file
        $file = $isFirst ? current( $this->files ) : next( $this->files );

        // loop until we can open a file.
        while ( $this->fp == null && $file !== false )
        {
            if ( $file === 'php://stdin' || file_exists( $file ) )
            {
                $fp = fopen( $file, 'r' );
                if ( $fp !== false )
                {
                    $this->fp = $fp;
                    return true;
                }
            }
            $file = next( $this->files );
        }
        return false;
    }
private function openFile( $isFirst = false )
    {
        // cleanup file pointer if needed
        if ( $this->fp != null )
        {
            fclose( $this->fp );
            $this->fp = null;
        }

        // open the new file
        $file = $isFirst ? current( $this->files ) : next( $this->files );

        // loop until we can open a file.
        while ( $this->fp == null && $file !== false )
        {
            if ( $file === 'php://stdin' || file_exists( $file ) )
            {
                $fp = fopen( $file, 'r' );
                if ( $fp !== false )
                {
                    $this->fp = $fp;
                    return true;
                }
            }
            $file = next( $this->files );
        }
        return false;
    }
private function openFile ( $ isFirst = false ) { // cleanup file pointer if needed if ( $ this -> fp != null ) { fclose ( $ this -> fp ) ; $ this -> fp = null ; } // open the new file $ file = $ isFirst ? current ( $ this -> files ) : next ( $ this -> files ) ; // loop until we can open a file. while ( $ this -> fp == null && $ file !== false ) { if ( $ file === 'php://stdin' || file_exists ( $ file ) ) { $ fp = fopen ( $ file , 'r' ) ; if ( $ fp !== false ) { $ this -> fp = $ fp ; return true ; } } $ file = next ( $ this -> files ) ; } return false ; }
Opens the next file in the set and returns true on success.

@param bool $isFirst
@return bool
Opens the next file in the set and returns true on success .