/var/www/vhosts/ihelp.ro/httpdocs/vendor/guzzlehttp/psr7/src
NameSizeModeActions
Exception/-0755rm
AppendStream.php59470644editdlrm
BufferStream.php32160644editdlrm
CachingStream.php45920644editdlrm
DroppingStream.php11960644editdlrm
FnStream.php44780644editdlrm
Header.php39350644editdlrm
HttpFactory.php30720644editdlrm
InflateStream.php13870644editdlrm
LazyOpenStream.php10880644editdlrm
LimitStream.php42970644editdlrm
Message.php83150644editdlrm
MessageTrait.php77290644editdlrm
MimeType.php550370644editdlrm
MultipartStream.php50100644editdlrm
NoSeekStream.php5240644editdlrm
PumpStream.php45770644editdlrm
Query.php36470644editdlrm
Request.php38970644editdlrm
Response.php49060644editdlrm
Rfc7230.php6610644editdlrm
ServerRequest.php95490644editdlrm
Stream.php73730644editdlrm
StreamDecoratorTrait.php33350644editdlrm
StreamWrapper.php40410644editdlrm
UploadedFile.php48590644editdlrm
Uri.php218210644editdlrm
UriComparator.php11500644editdlrm
UriNormalizer.php84160644editdlrm
UriResolver.php85470644editdlrm
Utils.php155660644editdlrm
Edit: /var/www/vhosts/ihelp.ro/httpdocs/vendor/guzzlehttp/psr7/src/StreamWrapper.php (4041B)
isReadable()) { $mode = $stream->isWritable() ? 'r+' : 'r'; } elseif ($stream->isWritable()) { $mode = 'w'; } else { throw new \InvalidArgumentException('The stream must be readable, ' .'writable, or both.'); } return fopen('guzzle://stream', $mode, false, self::createStreamContext($stream)); } /** * Creates a stream context that can be used to open a stream as a php stream resource. * * @return resource */ public static function createStreamContext(StreamInterface $stream) { return stream_context_create([ 'guzzle' => ['stream' => $stream], ]); } /** * Registers the stream wrapper if needed */ public static function register(): void { if (!in_array('guzzle', stream_get_wrappers())) { stream_wrapper_register('guzzle', __CLASS__); } } public function stream_open(string $path, string $mode, int $options, string &$opened_path = null): bool { $options = stream_context_get_options($this->context); if (!isset($options['guzzle']['stream'])) { return false; } $this->mode = $mode; $this->stream = $options['guzzle']['stream']; return true; } public function stream_read(int $count): string { return $this->stream->read($count); } public function stream_write(string $data): int { return $this->stream->write($data); } public function stream_tell(): int { return $this->stream->tell(); } public function stream_eof(): bool { return $this->stream->eof(); } public function stream_seek(int $offset, int $whence): bool { $this->stream->seek($offset, $whence); return true; } /** * @return resource|false */ public function stream_cast(int $cast_as) { $stream = clone $this->stream; $resource = $stream->detach(); return $resource ?? false; } /** * @return array */ public function stream_stat(): array { static $modeMap = [ 'r' => 33060, 'rb' => 33060, 'r+' => 33206, 'w' => 33188, 'wb' => 33188, ]; return [ 'dev' => 0, 'ino' => 0, 'mode' => $modeMap[$this->mode], 'nlink' => 0, 'uid' => 0, 'gid' => 0, 'rdev' => 0, 'size' => $this->stream->getSize() ?: 0, 'atime' => 0, 'mtime' => 0, 'ctime' => 0, 'blksize' => 0, 'blocks' => 0, ]; } /** * @return array */ public function url_stat(string $path, int $flags): array { return [ 'dev' => 0, 'ino' => 0, 'mode' => 0, 'nlink' => 0, 'uid' => 0, 'gid' => 0, 'rdev' => 0, 'size' => 0, 'atime' => 0, 'mtime' => 0, 'ctime' => 0, 'blksize' => 0, 'blocks' => 0, ]; } }