PHP 8.3.4 Released!

posix_setrlimit

(PHP 7, PHP 8)

posix_setrlimitSet system resource limits

Descrição

posix_setrlimit(int $resource, int $soft_limit, int $hard_limit): bool

posix_setrlimit() sets the soft and hard limits for a given system resource.

Cada recurso tem um limite flexível e um limite rígido associado. O limite flexível é o valor que o kernel impõe ao recurso correspondente. O limite rígido funciona com um teto máximo para o limite flexível. Um processo sem privilégios pode apenas definir seu limite flexível para um valor entre 0 e o limite rígido e reduzir irreversivelmente seu limite rígido.

Parâmetros

resource

The resource limit constant corresponding to the limit that is being set.

soft_limit

The soft limit, in whatever unit the resource limit requires, or POSIX_RLIMIT_INFINITY.

hard_limit

The hard limit, in whatever unit the resource limit requires, or POSIX_RLIMIT_INFINITY.

Valor Retornado

Retorna true em caso de sucesso ou false em caso de falha.

Veja Também

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top