php8.5
Home/ Manual/ eio / functions/ eio_fchown

eio_fchown

PHP function Edit on GitHub ✎

(PECL eio >= 0.0.1dev)

Change file ownership

Description

eio_fchown(mixed $fd, int $uid, int $gid = -1, int $pri = EIO_PRI_DEFAULT, callable $callback = NULL, mixed $data = NULL): resource

eio_fchown() changes ownership of the file specified by fd file descriptor.

Parameters

fd

Stream, Socket resource, or numeric file descriptor.

uid

User ID. Is ignored when equal to -1.

gid

Group ID. Is ignored when equal to -1.

pri

Values

callback

Proto

data

Arbitrary variable passed to callback.

Return Values

eio_fchown() returns request resource on success,Falseforfailure.

See Also

Source: reference/eio/functions/eio-fchown.xml · from the official PHP manual (php/doc-en)