protected function _fopen($file, $mode = self::FILE_MODE_BINARY, $use_include_path = false, $context = null)
    {
        if ($this->isVirtual) {
            $file = $this->_prepareForVfs($file);
        }

        $context = (!$context) ? stream_context_get_default() : $context;

        return fopen($file, $mode, $use_include_path, $context);
    }
protected function _fopen($file, $mode = self::FILE_MODE_BINARY, $use_include_path = false, $context = null)
    {
        if ($this->isVirtual) {
            $file = $this->_prepareForVfs($file);
        }

        $context = (!$context) ? stream_context_get_default() : $context;

        return fopen($file, $mode, $use_include_path, $context);
    }
protected function _fopen ( $ file , $ mode = self :: FILE_MODE_BINARY , $ use_include_path = false , $ context = null ) { if ( $ this -> isVirtual ) { $ file = $ this -> _prepareForVfs ( $ file ) ; } $ context = ( ! $ context ) ? stream_context_get_default ( ) : $ context ; return fopen ( $ file , $ mode , $ use_include_path , $ context ) ; }
fopen - virtual-fs supporting wrapper

This method is intend to work as fopen - virtual-fs supporting wrapper.

@param string $file             The file to open
@param int    $mode             The runtimeEnvironment to open file in
@param bool   $use_include_path TRUE to lookup in include path, otherwise FALSE to do not
@param mixed  $context          The context to open file in

@author Benjamin Carl <opensource@clickalicious.de>
@return mixed Handle on file if exists, otherwise FALSE (on failure ...)
@access protected
fopen - virtual - fs supporting wrapper