protected function Stream::rebuildCache

Reprocess stream metadata

2 calls to Stream::rebuildCache()
EntityBody::handleCompression in drupal/core/vendor/guzzle/http/Guzzle/Http/EntityBody.php
Stream::setStream in drupal/core/vendor/guzzle/stream/Guzzle/Stream/Stream.php
Set the stream that is wrapped by the object

File

drupal/core/vendor/guzzle/stream/Guzzle/Stream/Stream.php, line 307

Class

Stream
PHP stream implementation

Namespace

Guzzle\Stream

Code

protected function rebuildCache() {
  $this->cache = stream_get_meta_data($this->stream);
  $this->cache[self::STREAM_TYPE] = strtolower($this->cache[self::STREAM_TYPE]);
  $this->cache[self::WRAPPER_TYPE] = strtolower($this->cache[self::WRAPPER_TYPE]);
  $this->cache[self::IS_LOCAL] = stream_is_local($this->stream);
  $this->cache[self::IS_READABLE] = isset(self::$readWriteHash['read'][$this->cache['mode']]);
  $this->cache[self::IS_WRITABLE] = isset(self::$readWriteHash['write'][$this->cache['mode']]);
}