You are here

public function PumpStream::detach in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/guzzlehttp/psr7/src/PumpStream.php \GuzzleHttp\Psr7\PumpStream::detach()

Separates any underlying resources from the stream.

After the stream has been detached, the stream is in an unusable state.

Return value

resource|null Underlying PHP stream, if any

Overrides StreamInterface::detach

1 call to PumpStream::detach()
PumpStream::close in vendor/guzzlehttp/psr7/src/PumpStream.php
Closes the stream and any underlying resources.

File

vendor/guzzlehttp/psr7/src/PumpStream.php, line 65

Class

PumpStream
Provides a read only stream that pumps data from a PHP callable.

Namespace

GuzzleHttp\Psr7

Code

public function detach() {
  $this->tellPos = false;
  $this->source = null;
}