posix_setrlimit

(PHP 7)

posix_setrlimitSet system resource limits

Descrição

posix_setrlimit ( int $resource , int $softlimit , int $hardlimit ) : bool

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

Cada recurso está associado a um soft limit e um hard limit. O soft limit é o limite que o kernel restringe do recurso. O hard limit funciona com um teto máximo para o limite soft. Qualquer processo sem privilégios só pode pode configurar o soft limit entre zero e o hard limit, e irreversivelmente abaixo que o hard limit.

Parâmetros

resource

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

softlimit

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

hardlimit

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