X7ROOT File Manager
Current Path:
/opt/cpanel/ea-wappspector/vendor/guzzlehttp/psr7/src
opt
/
cpanel
/
ea-wappspector
/
vendor
/
guzzlehttp
/
psr7
/
src
/
??
..
??
AppendStream.php
(5.81 KB)
??
BufferStream.php
(3.14 KB)
??
CachingStream.php
(4.49 KB)
??
DroppingStream.php
(1.17 KB)
??
Exception
??
FnStream.php
(4.21 KB)
??
Header.php
(3.85 KB)
??
HttpFactory.php
(3 KB)
??
InflateStream.php
(1.38 KB)
??
LazyOpenStream.php
(1.06 KB)
??
LimitStream.php
(4.18 KB)
??
Message.php
(8.14 KB)
??
MessageTrait.php
(7.61 KB)
??
MimeType.php
(55.82 KB)
??
MultipartStream.php
(6.85 KB)
??
NoSeekStream.php
(524 B)
??
PumpStream.php
(4.49 KB)
??
Query.php
(3.95 KB)
??
Request.php
(3.81 KB)
??
Response.php
(4.79 KB)
??
Rfc7230.php
(661 B)
??
ServerRequest.php
(9.33 KB)
??
Stream.php
(7.21 KB)
??
StreamDecoratorTrait.php
(3.24 KB)
??
StreamWrapper.php
(4.53 KB)
??
UploadedFile.php
(4.98 KB)
??
Uri.php
(21.5 KB)
??
UriComparator.php
(1.12 KB)
??
UriNormalizer.php
(8.26 KB)
??
UriResolver.php
(8.38 KB)
??
Utils.php
(15.57 KB)
Editing: LazyOpenStream.php
<?php declare(strict_types=1); namespace GuzzleHttp\Psr7; use Psr\Http\Message\StreamInterface; /** * Lazily reads or writes to a file that is opened only after an IO operation * take place on the stream. */ final class LazyOpenStream implements StreamInterface { use StreamDecoratorTrait; /** @var string */ private $filename; /** @var string */ private $mode; /** * @var StreamInterface */ private $stream; /** * @param string $filename File to lazily open * @param string $mode fopen mode to use when opening the stream */ public function __construct(string $filename, string $mode) { $this->filename = $filename; $this->mode = $mode; // unsetting the property forces the first access to go through // __get(). unset($this->stream); } /** * Creates the underlying stream lazily when required. */ protected function createStream(): StreamInterface { return Utils::streamFor(Utils::tryFopen($this->filename, $this->mode)); } }
Upload File
Create Folder