![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/old/vendor/ezimuel/guzzlestreams/src/ |
<?php namespace GuzzleHttp\Stream; use GuzzleHttp\Stream\Exception\CannotAttachException; /** * Does not store any data written to it. */ class NullStream implements StreamInterface { public function __toString() { return ''; } public function getContents() { return ''; } public function close() {} public function detach() {} public function attach($stream) { throw new CannotAttachException(); } public function getSize() { return 0; } public function isReadable() { return true; } public function isWritable() { return true; } public function isSeekable() { return true; } public function eof() { return true; } public function tell() { return 0; } public function seek($offset, $whence = SEEK_SET) { return false; } public function read($length) { return false; } public function write($string) { return strlen($string); } public function getMetadata($key = null) { return $key ? null : []; } }