public function Stream::detach in Zircon Profile 8
Same name in this branch
- 8 vendor/zendframework/zend-diactoros/src/Stream.php \Zend\Diactoros\Stream::detach()
- 8 vendor/guzzlehttp/psr7/src/Stream.php \GuzzleHttp\Psr7\Stream::detach()
- 8 vendor/symfony/psr-http-message-bridge/Tests/Fixtures/Stream.php \Symfony\Bridge\PsrHttpMessage\Tests\Fixtures\Stream::detach()
Same name and namespace in other branches
- 8.0 vendor/guzzlehttp/psr7/src/Stream.php \GuzzleHttp\Psr7\Stream::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 Stream::detach()
- Stream::close in vendor/
guzzlehttp/ psr7/ src/ Stream.php - Closes the stream and any underlying resources.
File
- vendor/
guzzlehttp/ psr7/ src/ Stream.php, line 121
Class
- Stream
- PHP stream implementation.
Namespace
GuzzleHttp\Psr7Code
public function detach() {
if (!isset($this->stream)) {
return null;
}
$result = $this->stream;
unset($this->stream);
$this->size = $this->uri = null;
$this->readable = $this->writable = $this->seekable = false;
return $result;
}