posix_setrlimit
(PHP 7, PHP 8)
posix_setrlimit — Set system resource limits
Description
function posix_setrlimit(
int $resource,
int $soft_limit,
int $hard_limit):
bool
Each resource has an associated soft and hard limit. The soft
limit is the value that the kernel enforces for the corresponding
resource. The hard limit acts as a ceiling for the soft limit.
An unprivileged process may only set its soft limit to a value
from 0 to the hard limit, and irreversibly lower its hard limit.
Return Values
Returns true on success or false on failure.