Alpha ZealPHP is early-stage and under active development. APIs may change between minor versions until v1.0. Feedback and bug reports welcome on GitHub.
API Index — Namespaces, Packages, Reports, Indices

IOStreamWrapper
in package

Table of Contents

Properties

$context  : resource|null
$input  : string
$position  : int

Methods

__call()  : mixed
__get()  : mixed
stream_close()  : void
stream_eof()  : bool
stream_flush()  : bool
stream_lock()  : bool
stream_open()  : bool
stream_read()  : string|false
stream_rewind()  : bool
stream_seek()  : bool
stream_stat()  : array<int|string, mixed>|false
stream_tell()  : int|false
stream_truncate()  : bool
stream_unlink()  : bool
stream_write()  : int|false
url_stat()  : array<int|string, mixed>|false

Properties

Methods

__call()

public __call(string $name, array<string|int, mixed> $args) : mixed
Parameters
$name : string
$args : array<string|int, mixed>

__get()

public __get(string $name) : mixed
Parameters
$name : string

stream_lock()

public stream_lock(int $operation) : bool
Parameters
$operation : int
Return values
bool

stream_open()

public stream_open(string $path, string $mode, int $options, string|null &$opened_path) : bool
Parameters
$path : string
$mode : string
$options : int
$opened_path : string|null
Return values
bool

stream_read()

public stream_read(int $count) : string|false
Parameters
$count : int
Return values
string|false

stream_seek()

public stream_seek(int $offset[, int $whence = SEEK_SET ]) : bool
Parameters
$offset : int
$whence : int = SEEK_SET
Return values
bool

stream_stat()

public stream_stat() : array<int|string, mixed>|false
Return values
array<int|string, mixed>|false

stream_tell()

public stream_tell() : int|false
Return values
int|false

stream_truncate()

public stream_truncate(int $new_size) : bool
Parameters
$new_size : int
Return values
bool
public stream_unlink(string $path) : bool
Parameters
$path : string
Return values
bool

stream_write()

public stream_write(string $data) : int|false
Parameters
$data : string
Return values
int|false

url_stat()

public url_stat(string $path, int $flags) : array<int|string, mixed>|false
Parameters
$path : string
$flags : int
Return values
array<int|string, mixed>|false
On this page