function _stream_metadata($path, $option, $var)
    {
        $path = $this->_parse_path($path);
        if ($path === false) {
            return false;
        }

        // stream_metadata was introduced in PHP 5.4.0 but as of 5.4.11 the constants haven't been defined
        // see http://www.php.net/streamwrapper.stream-metadata and https://bugs.php.net/64246
        //     and https://github.com/php/php-src/blob/master/main/php_streams.h#L592
        switch ($option) {
            case 1: // PHP_STREAM_META_TOUCH
                return $this->sftp->touch($path, $var[0], $var[1]);
            case 2: // PHP_STREAM_OWNER_NAME
            case 3: // PHP_STREAM_GROUP_NAME
                return false;
            case 4: // PHP_STREAM_META_OWNER
                return $this->sftp->chown($path, $var);
            case 5: // PHP_STREAM_META_GROUP
                return $this->sftp->chgrp($path, $var);
            case 6: // PHP_STREAM_META_ACCESS
                return $this->sftp->chmod($path, $var) !== false;
        }
    }
function _stream_metadata($path, $option, $var)
    {
        $path = $this->_parse_path($path);
        if ($path === false) {
            return false;
        }

        // stream_metadata was introduced in PHP 5.4.0 but as of 5.4.11 the constants haven't been defined
        // see http://www.php.net/streamwrapper.stream-metadata and https://bugs.php.net/64246
        //     and https://github.com/php/php-src/blob/master/main/php_streams.h#L592
        switch ($option) {
            case 1: // PHP_STREAM_META_TOUCH
                return $this->sftp->touch($path, $var[0], $var[1]);
            case 2: // PHP_STREAM_OWNER_NAME
            case 3: // PHP_STREAM_GROUP_NAME
                return false;
            case 4: // PHP_STREAM_META_OWNER
                return $this->sftp->chown($path, $var);
            case 5: // PHP_STREAM_META_GROUP
                return $this->sftp->chgrp($path, $var);
            case 6: // PHP_STREAM_META_ACCESS
                return $this->sftp->chmod($path, $var) !== false;
        }
    }
function _stream_metadata ( $ path , $ option , $ var ) { $ path = $ this -> _parse_path ( $ path ) ; if ( $ path === false ) { return false ; } // stream_metadata was introduced in PHP 5.4.0 but as of 5.4.11 the constants haven't been defined // see http://www.php.net/streamwrapper.stream-metadata and https://bugs.php.net/64246 //     and https://github.com/php/php-src/blob/master/main/php_streams.h#L592 switch ( $ option ) { case 1 : // PHP_STREAM_META_TOUCH return $ this -> sftp -> touch ( $ path , $ var [ 0 ] , $ var [ 1 ] ) ; case 2 : // PHP_STREAM_OWNER_NAME case 3 : // PHP_STREAM_GROUP_NAME return false ; case 4 : // PHP_STREAM_META_OWNER return $ this -> sftp -> chown ( $ path , $ var ) ; case 5 : // PHP_STREAM_META_GROUP return $ this -> sftp -> chgrp ( $ path , $ var ) ; case 6 : // PHP_STREAM_META_ACCESS return $ this -> sftp -> chmod ( $ path , $ var ) !== false ; } }
Change stream options

@param string $path
@param int $option
@param mixed $var
@return bool
@access public
Change stream options